can I do
ps -ef | grep <process_name>
and kill the process is it exists?
and send a mail to me that the process was found and killed
Thanks much...
KS (4 Replies)
How do I kill a process, say by name "drec" from a perl script.
I tried with :
ps -eaf | grep drec | awk '{print $2}' | xargs kill -9.
The output I got is :
ps -eaf | grep drec | awk '{print }' | xargs kill -9
/usr/bin/kill: ipgen: Arguments must be %job or process ids
{But, $2 is not... (3 Replies)
Hey all. I'm brand new to this forum and am looking for some help. I have a script that verifies that the backup tapes are working correctly. Basically is uses 1 command: restore -xpqvf > rootvglog
I use this for each volume group that we have. We run this everyday but the problem is, we... (4 Replies)
Hi Everyone,
I have written a script to automate the docbase cleanup process on every weekly basis. That is in this script i have to shutdown the docbase and then kill all the process that are hanged except one process(epic process) and need to delete some log files and then i have to start the... (8 Replies)
i am using script to connect remotly to server and run some commands , one of these commands is to kill some process but tried different ways with no hope
sshpass -p 'pass' ssh -o StrictHostKeyChecking=no server kill -9 `pgrep procs`
getting error message "kill: bad argument count"
... (2 Replies)
Hello All,
i hope you are fine.
I need a little help from you people--
inside a script i want to kill a parent process by checking it with the child process..
p_pid=`ps -e | awk '/ra_cmd_d/ {print$1}'`
here i am selecting the child process id in p_pid.
next--
sleep_pid=`ps -af |... (3 Replies)
Hi,
By using
ps -aux | awk '/mine/{split($15,a,"/");print $1,$2,a}'
i get the below listed PID's with there corresponding processes.
adm 1522 ABC_Process.tra
adm 1939 GENE_Process.tra
adm 2729 GENE_Archive.tra
adm 3259 xyz_Process.tra
I use
ps -aux | awk... (5 Replies)
Hello,
can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process.
I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user.
# service splunk status
Splunk status:
splunkd... (8 Replies)
I want to run a script that calls remote ssh and if it gets hung, I want to be able to kill that part of the script and run another command in the script
for example I have a statement like this:
if ];
then
export tapes=$(for tape in $(su - nacct -c 'ssh remote1 "cat... (1 Reply)
I am running a script which will read the data from fail line by line and call the Java program by providing the arguments from the each line.
The Java code is working fast for few records and for some records its getting hanged not providing response for morethan one hour.
Currently am... (4 Replies)
Discussion started by: dineshaila
4 Replies
LEARN ABOUT DEBIAN
jifty::script::server
Jifty::Script::Server(3pm) User Contributed Perl Documentation Jifty::Script::Server(3pm)NAME
Jifty::Script::Server - A standalone webserver for your Jifty application
SYNOPSIS
jifty server
jifty server --port 6666
jifty server --stop
DESCRIPTION
Starts and stops Jifty's standalone web server.
options
--port The port to run the server on. Overrides the port in the config file, if it is set there. The default port is 8888.
--user USER
The user to become after binding to the port. It is advised that you use this when binding to low ports, instead of running as
"root". This option only works if the server is using a Net::Server subclass.
--group GROUP
The group to become after binding to the port. Like "--user", this option only works if the server is using a Net::Server
subclass.
--host HOSTNAME
The host to bind to. This option only works if the server is using a Net::Server subclass.
--stop Stops the server, if it is running. This is accomplished by reading the PID from "var/jifty-server.pid"
--restart
restart the server, if it is running. This is accomplished by killing the child pid, and let parent pid create a new one
--sigready SIGNAL
Sets the signal number that should be sent to the server's parent process when the server is ready to accept connections.
--quiet Reduces the amount of debug output sent by the server
--dbiprof
Turns on DBI profiling; see DBI::ProfileDumper.
--help Print a brief help message and exits.
--man Prints the manual page and exits.
DESCRIPTION
When you're getting started with Jifty, this is the server you want. It's lightweight and easy to work with.
METHODS
run
"run" takes no arguments, but starts up a Jifty server process for you.
perl v5.14.2 2010-12-08 Jifty::Script::Server(3pm)