[lug] bash -x script_to_debug

D. Stimits stimits at idcomm.com
Sun Apr 1 03:11:20 MDT 2001


Bob Collins wrote:
> 
> Is there a way to capture the output sent to the screen when
> running a script like below?
> 
> bash -x script_to_debug
> 
> --
>    Regards, Bob Collins
> Computers are useless.  They can only give you answers.
>                 -- Pablo Picasso

The "tee" command is nice for this. For example, if it is just standard
out (no standard error):
bash -x script_to_debug | tee FileNameToLogTo.txt

D. Stimits, stimits at idcomm.com



More information about the LUG mailing list