10-29-2010
Have a look at the man page man fuser
options -u and -k
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i'm just learning scripting, and have been banging my head against this
I want to check if my WAS6 java process is running and if so..echo me a messages. If not then echo me a different messages
the problem i have is I dont know how to represent a NULL return value. If i grep for a was6... (14 Replies)
Discussion started by: zeekblack
14 Replies
2. Shell Programming and Scripting
I want to do some operations provided the pid is active. (6 Replies)
Discussion started by: ScriptDummy
6 Replies
3. Shell Programming and Scripting
So, first and foremost, I'm having issues with my internet connection. Periodically, the connection drops across the network. The fix is simple enough: restart the modem. However, this gets old when the connection dies out every hour.
I can hit my surfboard on 192.168.100.1, and navigate to a... (5 Replies)
Discussion started by: kungfujoe
5 Replies
4. Shell Programming and Scripting
Good day
I am fairly new to Shell Scripting.
I want a script to check if a process is up by checking the process's PID and then return a value for when it's running which would be 0. If it isn't running it should give any other value that 0.
Any Help is appreciated
Regards (9 Replies)
Discussion started by: 1nsyz1on
9 Replies
5. Shell Programming and Scripting
we have a server, which becomes down at times and we dont get any notification mail.
Can we monitor PID for that server run and create a script to send notification to a mail id?
I have URL for the server, which I can use.
Please let me know if more information is required from my end to... (2 Replies)
Discussion started by: vandana.parwani
2 Replies
6. Shell Programming and Scripting
:wall:Dear All.:p
How to check log size every 10min. by script (not crontab)
if log size not change with alert "Log not update"
My Path :: /usr/home/logical/mono/log/tplink/
My Log :: mono11_tplink.log , mono12_tplink.log , etc
I want oup put.
EX. if log not update.
.
.
.
Fri Jan ... (1 Reply)
Discussion started by: ooilinlove
1 Replies
7. Shell Programming and Scripting
Hello,
I have various scripts that writes to logs ( >> ) in different directories.
I have create a script to automatically check different direcories for different errrors. However I do not want to remove logs if a script is still writing to a log.
Is the log file opened for writing when the... (7 Replies)
Discussion started by: drbiloukos
7 Replies
8. Shell Programming and Scripting
Hi all,
I currently have a UNIX file maintenance script that runs daily as a cron job.
Now I want to change the script and create functions/sub inside it that runs on a weekly or monthly basis.
To run all the scripts' daily maintenance, I want to schedule it in cron as simply maint.sh... (1 Reply)
Discussion started by: newbie_01
1 Replies
9. Shell Programming and Scripting
In a Shell Script what is the most generic way to find in the PID exists or not.
If it does not exist how can I echo the user "PID does not exist" & terminate the unix script ?
If the command can work on most flavors of operating system the more useful I will find it to be.
Current system... (16 Replies)
Discussion started by: mohtashims
16 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu14.04
What I am trying to do is restart a process with a shell when pid is dead.
I restored pid nr in a file and check with ps aux | grep -v grep | grep $(cat *.pid)| awk '{ print $2 }'
While surfing on google, I have found an answer saying that restoring pid in a... (2 Replies)
Discussion started by: baris35
2 Replies