On Thursday 04 August 2005 21:45, Matthew Hannigan wrote: > On Thu, Aug 04, 2005 at 04:18:21PM +1000, Ian Wienand wrote: > > e.g. > > > > #!/bin/bash > > > > output=">> /tmp/output" > > > > eval ls $output > > Just don't put the >> in the var. > > If you want it to go the screen, you can use /dev/tty. > Or for those unixes that support it, like linux, /dev/fd/1 > is stdout.
I thought /dev/stdout and /dev/stderr were the "POSIX-ly" correct forms? I've always used them in my scripts for this sort of thing and often move them from Linux <-> Solaris <-> BSD <-> AIX without needing much more than editing the #! line. Cheers, James -- "All my life I wanted to be someone; I guess I should have been more specific." -- Jane Wagner -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
