Kbase P109481: How to trace execution of a UNIX script?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to trace execution of a UNIX script?
GOAL:
What shell tool will help debug UNIX script logic?
FACT(s) (Environment):
UNIX
FIX:
Program execution may be traced with the shell -x option.
syntax: sh -x <script name>.
A new shell is started to execute the indicated program with the -x option enabled. In the debugging mode, commands are printed at the terminal as they are executed, preceded by a plus sign. Variable assignments are not proceeded by a plus sign.