JonathanHolliday
Technical User
I have a script that runs a program with an interactive user parameters screen.
In order to run this as a CRON job 'we' have created a script that passes the key depressions to the job.
The trouble is the CRON job is "blind" so any on-screen messages that may have occured during an interactive run are not seen.
Is there a script statement to redirect output to a log file instead of the default of screen?
Script example:
$TRADERDIR/bin/jvint -k6 > /dev/null << INPUT
^?
B001
B001
$FROMDAY
$TODAY
S
U
N
pospost
^[[H^?^[[F
INPUT
(jvint6 -k6 is the program to run & INPUT is the parameters to enter, including control characters).
Thanks,
Jonathan
In order to run this as a CRON job 'we' have created a script that passes the key depressions to the job.
The trouble is the CRON job is "blind" so any on-screen messages that may have occured during an interactive run are not seen.
Is there a script statement to redirect output to a log file instead of the default of screen?
Script example:
$TRADERDIR/bin/jvint -k6 > /dev/null << INPUT
^?
B001
B001
$FROMDAY
$TODAY
S
U
N
pospost
^[[H^?^[[F
INPUT
(jvint6 -k6 is the program to run & INPUT is the parameters to enter, including control characters).
Thanks,
Jonathan