I'm not if the perl system commands are the exact same as shell commands, butif they are, the ping command will just keep pinging forever, so the script is effectively stuck on the ping line and never gets to the sleep or kill lines.
Use "ping -c " to ping a certain number of times, e.g. "ping -c 2 google.com" will ping twice, or use "&" to put the ping line in the background.
Hi friends,
I have a perl script which needs to kill all java processes running on both windows and unix.
currently I'm getting the OS and killing the process by using system.
my code is:
if ($os eq MSWin32)
system("taskkill java");
else
system("kill -9 java")
Is there any way... (2 Replies)
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
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)
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Hello all... new to these forums and a bit of a newbie with linux aswell.
I need to figure out how to write a shell script to kill a process by name as given to the script as an argument. I've got that part working OK, but i need to make sure that the script does not allow processes that are... (6 Replies)
What I need to learn is how to use a script that launches background processes, and then kills those processes as needed.
The script successfully launches the script. But how do I check to see if the job exists before I kill it?
I know my problem is mostly failure to understand parameter... (4 Replies)
Hi All
How can i in perl check for a running process and if it is running kill it
the issue might be that there will be more than one of the same process and i want to kill all of them
the process is below
root 1944 1 0 16:28 ? 00:00:01 x11vnc -display :0... (3 Replies)
All,
1.What is the unix comand used for all current running process (Including All current running processes Parent ->child->subchild process)
2.If child and subchild processes are running then what is the unix command to kill parent and its all child subchild processes in UNIX.
Kindly... (7 Replies)
Discussion started by: skp
7 Replies
LEARN ABOUT HPUX
dceping
dceping(8)dceping(8)NAME
dceping - test the ability to contact DCE services from a local DCE client.
SYNOPSIS
dceping [-n number] [-s time] [-v] [-C] [service_name ...] required to specify the literal strings, NAMESPACE or STRING_BINDING (see nond-
cesvc(4)).
OPTIONS -n number Specify the number of pinging cycles. Each service is tested once per cycle. The default is one pinging cycle. Specifying -n 0
makes pinging continuous.
-s time Specify time, in seconds, to wait between pinging cycles. You must specify more than one pinging cycle with the -n option in
order to use -s.
-v Run in verbose mode.
-C Ping only core DCE services. This option is ineffective if a service_name is specified on the command line.
DESCRIPTION
dceping verifies that a local DCE client can communicate with DCE and other services. It uses the RPC management interface to determine if
the DCE service is listening. The core DCE services that dceping checks include secd, cdsd, gdad, rpcd, cdsadv, dtsd, and sec_clientd.
You can ping other DCE and non-DCE services by naming them in the file, /opt/dcelocal/hpadmin/etc/nondcesvc. If you want to determine at
run time what services you want dceping to ping, you may do so using the same file. See the manpage, nondcesvc(4), for more information.
You may specify the services to ping on the command line separated by blanks. In this case, dceping does not ping any DCE core services or
the services listed in /opt/dcelocal/hpadmin/etc/nondcesvc. The service_name specified could be either a name in the DCE Cell Directory
Service Namespace or an RPC string binding. It is not
AUTHOR
dceping was developed by HP.
FILES
/opt/dcelocal/hpadmin/etc/nondcesvc
/opt/dcelocal/hpadmin/etc/wellknownif
SEE ALSO nondcesvc(4), wellknownif(4)HP DCE dceping(8)