Viewing 1 to 9 of 9 items
Archive | kill RSS feed for this section

kill

kill Stop a process from running   kill defaul it’s 15 SYNOPSIS kill [ -s signal | -p ] [ -a ] [ — ] pid … kill -l [ signal ] DESCRIPTION The command kill sends the specified signal to the specified process or process group. If no signal is specified, the TERM signal  Full Article…

0

Shell Script to Kill Process(number of process) Unix/Solaris

This is how we execute the script (and this is the requirement) ———————————— bash-2.05$ processkill Usage: ./processkill [-p|-f] [-u username] [num] regex Kill processes matching a regular expression -p: print processes matching regular-expression, don’t kill -f: force (don’t ask) num: send specified number to process. 15 if none given bash-2.05$ bash-2.05$ bash-2.05$ bash-2.05$ processkill -u  Full Article…

0

Linux: Kill Process based on Start Time (STIME)

One of the server that I am working with has some infinitely running PHP process. Due to incorrect way of cron setup by the development team, it has caused the process hanging and not ended properly. According to them, these processes can be killed if still hang after 12 hours. Any process which run in server will  Full Article…

0

Shell script to kill process Automatically after 3 days

I need script who automaticly will kill all (eggdrop,psybnc) processes on 3 days or 1 week #!/bin/bash # Days ago DAYS=”3″ PROCS=”eggdrop|psybnc” # Old date AGO=$(date –date=”$DAYS days ago” +”%b %d”) # Get pids PIDS=$(ps eaxo bsdstart,cmd,pid | egrep “^$AGO”‘ | egrep “$PROCS” | awk ‘{ print $4}’) # Now kill em echo “Killing $PROCS  Full Article…

0

Killing processes in UNIX

Q. Sometime I need to stop a command or task under UNIX. I also noticed that some process will ignore my keystroke-generated signals such as CTRL + C or CTRL+D, so my question is – How do I kill process in UNIX? A. You need to use a command called kill. The kill utility sends a signal  Full Article…

0