Unix script execution messages

Hi folks,

Is there a way to view the messages, during execution of a unix script?, for the purpose of debugging.

Regards

Hmm - not too sure what you mean.

You can use "set -x" (ksh) within a script or in an interactive shell session to enable you to see expansions and substitutions as they are executed.

e.g.
$ set -x
$ foo=bar
$ echo $foo
+ echo bar
bar
$

Is this what you want?

Cheers
ZB

Hi Zazzybob,

It works for me.

thanks