I have a shell script that ssh over to another box, runs a cattail command on a log file, and redirects the output over a file on a different directory on the local box.
The name of the shell script is: desktop_SHM.ksh
I have this shell script running as a cronjob at 7:30am, monday to friday, but for some reason, when i come in at 8:00am and check to see if it is running, it has died at 7:30am after running once.
The desktop_SHM.err file is blank.
If I run this script from the command prompt, it works fine all day till I manually kill it, however if I run this script from the command prompt, but in the background, when i change directories it stops also.
I am unsure why this is happening if someone can please help me.
The name of the shell script is: desktop_SHM.ksh
Code:
#!/bin/ksh ssh infrap@ics0001 '/sbt/prod/infra/bin/cattail /sbt/prod/infra/v2run_dir/log/alarmNotification.log' > /infra/sbt-support/supportTools/hsqldb/ics/tmp/alarmNo tification.log.orig
Code:
30 7 * * 1-5 /infra/sbt-support/supportTools/transferOutliers/bin/desktop_SHM.ksh > /dev/null 2>/infra/sbt-support/supportTools/logs/desktop_SHM.err
If I run this script from the command prompt, it works fine all day till I manually kill it, however if I run this script from the command prompt, but in the background, when i change directories it stops also.
Code:
[7]+ Stopped desktop_SHM.ksh
Comment