Make my shell script die when finished. - TechRepublic
General discussion
June 5, 2001 at 06:07 AM
jeffreymangan

Make my shell script die when finished.

by jeffreymangan . Updated 24 years, 11 months ago

I have a shell script that FTPs files from HP-UX to a Novell server every 5 minutes as an upload. Sometimes the previous upload script hangs out there so the subsequent uploads won’t run because they grep for the script and see it still out there. How can I make a script die better when it’s finished. Sometimes these hang for 2 hours or until I kill the PID for the script then in 5 minutes the next upload can run.

This discussion is locked

All Comments