echo command as in windows
Nigel Wade
nmw at ion.le.ac.uk
Thu May 25 16:20:56 UTC 2006
Jeffrey Beckstrom wrote:
> This is a scheduled crontab job.
>
>
>>>>wia at iglass.net 5/25/06 11:58:45 AM >>>
>>
>>-----Original Message-----
>>From:Jeffrey Beckstrom
>>Sent: Thursday, May 25, 2006 11:34 AM
>>Subject: echo command as in windows
>>
>>In windows, you can do "set echo on" so that all commands in the bat
>>file are listed. Is there a way to do the same in Linux.
>
>
> Are you using bash? try running it with 'bash -x <script>'
>
> marc
>
>
Use 'set -x' within the script to turn it on, and 'set +x' to turn it off.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw at ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
More information about the redhat-list
mailing list