10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
# watchdog process
mainpid=$$
(sleep 5; kill $mainpid) &
watchdogpid=$!
sleep 100
kill $watchdogpid
The sleep isn't be killed, I want the script to be killed
---------- Post updated at 03:03 AM ---------- Previous update was at 12:04 AM ----------
I just modify the format of my... (1 Reply)
Discussion started by: yanglei_fage
1 Replies
2. UNIX for Dummies Questions & Answers
I'd like to terminate scripts.
These scripts are not by me, but other persons. These contain other programs such as ping, nmap, arp, etc.
If such a script is running, how can I terminate this script AND all processes called by this script?
These scripts are big so terminating all programs... (4 Replies)
Discussion started by: lordofazeroth
4 Replies
3. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
4. Shell Programming and Scripting
Hi ,I need your help to kill the script itself if run for more than 10 mins .
main.sh
nohup ./a1.sh param1 &
nohup ./a2.sh param1 &
wait
#Wait for 2 scripts to complete and and kill the process if run more than 10 mins
---
Thanks inadvace
MR
Please view this code tag... (2 Replies)
Discussion started by: mohan705
2 Replies
5. Shell Programming and Scripting
I want to warn everyone, I am not a programmer lol. I'm an IT wanting to get a little insight of programming, and I like to play around so I can learn. Ok, so I'm going to school for IT Security and Forensics. I had a project to write a hack, and I chose to write a shell script to run dd to write... (8 Replies)
Discussion started by: joshbgosh10592
8 Replies
6. Shell Programming and Scripting
Hi,
I wrote a script to kill a process id.
I am able to kill the PID only if I enter the root password in the middle of the execution because I did not run as root i.e after i run the script from the terminal, instead of killing directly, it is killing only after entering the pass when it... (12 Replies)
Discussion started by: rajkumarme_1
12 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am using the below command to kill the firefox process i have opened in Redhat 5.
ps -ef|grep fire|grep -v grep|awk '{print $2}'|xargs kill -9
If i execute the above command in terminal it works good and kills session.
but when i use alias for that it is not working.
alias... (2 Replies)
Discussion started by: nokiak810
2 Replies
8. Shell Programming and Scripting
hello Bros,
I need to write some script that i can put it on crontab which checks for a process X if running. If the process X is ruuning then take the PID and kill it or display message that says process X is not running.
I am using AIX 5.3
Thanks guys.:b: (2 Replies)
Discussion started by: malcomex999
2 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
10. Shell Programming and Scripting
Hi all!
I wirte a little Shell Script, that kill pids by programm names. For example, when i want to kill any pid of xmms i use this command:
kill -9 `ps -A | awk ' ($4=="xmms") {print $1}'`
To put this in a "killprg" script i use the following linkes:
#!/bin/bash
echo ""
echo "Programm... (2 Replies)
Discussion started by: donald1111
2 Replies