SUMMARY:debug script

From: Ashish Nigam <ashishn_at_ntechra.com>
Date: Thu Jul 25 2002 - 18:49:15 EDT
Thanks to everyone who answered my question.

We can use either

#!/path/to/bash -x
or
set -vx

in the script file to debug the script.

Thanks,
Ashish

Original Posting

Hi,
To debug script, I can run the script using
bash -x <script name>

But is it possible to specify this parameter inside the script itself, so that
i get the debug data everytime I run the script and I need not run it
explicitly specifying
"bash -x"

Thanks
Ashish
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Jul 25 18:50:22 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:50 EST