![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running app after logout and monitoring | ncatdesigner | High Level Programming | 1 | 04-21-2008 02:39 AM |
| Monitoring Processes - Killing hung processes | ukndoit | UNIX for Advanced & Expert Users | 4 | 01-17-2008 12:30 AM |
| Monitoring processes of another host | Andimotz80 | Shell Programming and Scripting | 5 | 07-10-2006 05:43 PM |
| getting certain info for all processes currently running | Yifan_Guo | High Level Programming | 3 | 03-25-2005 03:53 PM |
| Running two processes in background | jacob_gs | Shell Programming and Scripting | 6 | 05-13-2002 08:40 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
monitoring running processes
I have a script that runs continuously and will deliver a file to multiple servers via scp. On occasions one of the scp's will hang and as a result not complete in sending the remaining files and not loop around again.
If I run the scp commands with a & they'll complete, but I want to make sure the sends have finished before looping again. My question is how do I monitor the 6 PID's and kill any that have run for more than 2 minutes? I was going to capture the PID into an array and then use that some how. Just can't work out the best way. Any ideas? They'll be some Christmas cheers for the winner |
| Forum Sponsor | ||
|
|