Thanks, I'll have a look-see!
Edited the spelling of the subject line too, too bad it doesn't update the Board thread listing
EDIT: yes, `tee` works fine!
Thanks a lot , it works a lot better than my 'ugly' solution...
In case anyone is interested: this is the script I tested it with:
replace "some_long_command" by a command that takes a long time to execute and produces output during execution. (I used un-tar on a large file)
Code:
#!/bin/bash
OUTPUTFILE=output.txt
COMMAND="some_long_command |tee $OUTPUTFILE"
echo $COMMAND
eval $COMMAND