in reply to reading files and directories, part two


Davido's right.another way could be:
On a unix system
perl -e 'print "Hello world\n";' | tee output.txt
If you want ALL the oitput of your script to go to both a logfile and the screen
you could just run your script like this
perl scriptname | tee filename.
HTH
  • Comment on Re: reading files and directories, part two