Home » Infrastructure » Unix » set -x
set -x [message #147387] Thu, 17 November 2005 08:23 Go to next message
alka205
Messages: 18
Registered: August 2005
Junior Member
What do set -x do on unix script. Where do I add it?

Thanks
Re: set -x [message #147395 is a reply to message #147387] Thu, 17 November 2005 08:43 Go to previous message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Do a "man ksh":
set -x:

-x Prints executed commands and their arguments.


Example:
$ set -x
$ ls
+ ls


Very handy for tracing shell scripts.

Best regards.

Frank
Previous Topic: want to ftp files to unix server with permissions 777
Next Topic: vi help
Goto Forum:
  


Current Time: Mon Nov 25 10:50:33 CST 2024