|
Summary: Killing process with a shell script: msg#00004os.solaris.managers.summaries
Dear Manager, thanks to all (too many to list) that responded to my question. The following script seems to solve my problem: #!/bin/sh pid=`/usr/bin/ps -ef | /usr/bin/grep pop-before-smtp | grep -v grep| awk -F' ' '{print $2}'`; if test "$pid" = "" ; then echo "Process does not run yet!"; else echo "Killing process..." kill $pid; fi echo "Restarting pop-before-smtp..."; nohup /usr/local/bin/pop-before-smtp & Thanks a lot! Regards, Andrea I am desparately trying to figure out how to kill a process (the complete path is given) with a shell script. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SUMMARY]:Exceed configuration: 00004, Schaper, Soeren |
|---|---|
| Next by Date: | [SUMMARY] #2 problem installing flash image on v240 that doesn't contain DVD drive: 00004, Adam Mazza |
| Previous by Thread: | [SUMMARY]:Exceed configurationi: 00004, Schaper, Soeren |
| Next by Thread: | [SUMMARY] #2 problem installing flash image on v240 that doesn't contain DVD drive: 00004, Adam Mazza |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |