Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
how to properly use - ps -ef ???
Name: ihsail Date: January 18, 2006 at 09:14:20 Pacific OS: Solaris CPU/Ram: 2GH
Comment:
Please help...
I found the following command at ask.com and it seems useful to find whether a script is currently executing.
However, I have no clue how to use it properly (I've tried). I want to use the command to find the string of the script name that I am looking for, if the string is found then that means it is running and I want to EXIT, otherwise, continue with the next step.
Please shed some light of how to properly use the below command for the above situation.
Thanks much...
if ps -ef | grep "_script1_" | grep -v grep >/dev/null then exit else process part 2 if
Summary: How to obtain a process name (note: name, not id) from the current processes are running on the sys ? say, if we use ps -ef then the last argument is always the process name rite ? if so, then how to ...
Summary: #!/bin/ksh # file name daemon while : do # code to synchronize time goes here sleep 14400 done #************* start the script by entering the command: at now daemon stop by using ps -...
Summary: Hi, Need Help. I need a script to find the idel user using the finger command and if the idel time is more the 30 mins, then i need to check whether the user is printing reports using the ps -ef comma...