Richard Adams wrote:
>
> On Thu, 27 Jul 2000, Erik Jakobsen wrote about, Trace.:
> > I have a software that calls some scripts. How can I trace how its
> > working ??.
>
> Difficult to say as some scripts get called from binary programs, in this
> case you could use 'strace' to see whats going on, however strace can
> create massive files full of not really interesting stuff.
>
> If you want just to see what is happening in the scripts you can do;
>
> cd /to/where/the/file/is
> sh -x ./script_file_name
Thank you Richard, but it did not help too much:
linux:/etc/ax25/fbb/fwd # sh -x ./k1uol
+ A K1UOL
./k1uol: A: command not found
+ P A
./k1uol: P: command not found
+ O 1
./k1uol: O: command not found
+ L '!TRX' SCAN 0
./k1uol: L: command not found
+ IF 03-07
./k1uol: IF: command not found
+ L '!TRX' F 10144.0
./k1uol: L: command not found
+ ENDIF
./k1uol: ENDIF: command not found
+ IF 11-13, 18-19
./k1uol: IF: command not found
+ D kctaz 315
./k1uol: D: command not found
+ ENDIF
: command not found
+ IF C1
./k1uol: IF: command not found
+ L '!TRX' F 14120.0
./k1uol: L: command not found
+ ENDIF
: command not found
+ IF C2
./k1uol: IF: command not found
+ L '!TRX' F 14114.5
./k1uol: L: command not found
+ C C K1UOL
./k1uol: C: command not found
+ ENDIF
: command not found
+ IF 11-13, 18-19
./k1uol: IF: command not found
+ DC kctaz 315
./k1uol: DC: command not found
+ ENDIF
: command not found
+ B K1UOL
./k1uol: B: command not found
+ F K1UOL
./k1uol: F: command not found
' H '*K1UOL*
./k1uol: H: command not found
' H '*.NA
./k1uol: H: command not found
' H '*.NOAM
./k1uol: H: command not found
' H '*.CAN
./k1uol: H: command not found
+ IF 00, 03, 06, 09, 12, 15, 16, 17, 18, 21
./k1uol: IF: command not found
+ R
: command not found
+ ENDIF
: command not found
+ ---------------
: command not found-----
linux:/etc/ax25/fbb/fwd #
Here is the script file:
A K1UOL
#
P A
#
O 1
#
L !TRX SCAN 0
#
IF 03-07
#
L !TRX F 10144.0
#
ENDIF
IF 11-13, 18-19
D kctaz 315
ENDIF
#
IF C1
L !TRX F 14120.0
ENDIF
IF C2
L !TRX F 14114.5
C C K1UOL
ENDIF
IF 11-13, 18-19
DC kctaz 315
ENDIF
#
#
#
# - Forward to K1UOL on HF -
B K1UOL
F K1UOL
H *K1UOL*
#
H *.NA
H *.NOAM
H *.CAN
#
# - Reverse forward -
IF 00, 03, 06, 09, 12, 15, 16, 17, 18, 21
R
ENDIF
#
---------------
> If of course it is a large script and the commands an there returns flow
> off the screen;
>
> sh -x ./script >logfile
> less logfile
>
> >
> > 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
> --
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
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