You can also try putting the command:

  set -x

at the top of the script that you want to trace. I believe though that if
the script calls any functions then once in the function, it will not trace
any more. So you'd have to add the set -x line to the top of each function
as well. Also screen clearing effects the trace too. 

I'm not an expert in Bash, but this works in the Bourn and Korn shells.

Hope this helps! =:-)

Christopher Jordan
National DCS Support
[EMAIL PROTECTED]
'If you have the right attitude, interesting problems will find you.'

-----Original Message-----
From: Carl Lawton [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 27, 2000 6:58 AM
To: [EMAIL PROTECTED]
Subject: RE: Trace.


In the old days of the bourne shell (rather than bourne again shell) you
could
execute scripts with "sh -x" and it would show you the commands and
arguments 
as it executed them. I don't know if this still exists in bash.

I don't know if sh comes with SuSE, on red hat it is just a link to
bash.

--
Carl Lawton
XKO Software Ltd 



> -----Original Message-----
> From: Erik Jakobsen [mailto:[EMAIL PROTECTED]]
> Sent: 27 July 2000 10:36
> To: [EMAIL PROTECTED]
> Subject: Trace.
> 
> 
> I have a software that calls some scripts. How can I trace how its
> working ??.
> 
> Thanks in advance.
> 
> Erik.
> -- 
> De bedste hilsener // Best regards // Erik Jakobsen
> [EMAIL PROTECTED] // SuSE linux 6.3
> Licensed RadioAmateur with the callsign OZ4KK.
> 
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to