11-28-2009
Thanks Pouchie1. No I think it can be done using Perl. You could probably use
Net::Ping (I haven't used it myself). What is being said is that if you are going to use system tools to accomplish your goal then effectively you are using almost only external commands and you might as well use a shell script instead.
Last edited by Scrutinizer; 11-30-2009 at 02:01 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: gurukottur
2 Replies
2. Shell Programming and Scripting
From a perl script , How can I monitor a PS which I activated and kill it within 5 minutes in case it didn't complete its tasks.:confused: (2 Replies)
Discussion started by: Alalush
2 Replies
3. Shell Programming and Scripting
Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies
4. Linux
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)
Discussion started by: sudhamacs
6 Replies
5. 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
6. Shell Programming and Scripting
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)
Discussion started by: jonnyvic
2 Replies
7. Shell Programming and Scripting
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)
Discussion started by: cannon1707
6 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: holocene
4 Replies
9. Shell Programming and Scripting
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)
Discussion started by: ab52
3 Replies
10. Shell Programming and Scripting
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 SUSE
perlhaiku
PERLHAIKU(1) Perl Programmers Reference Guide PERLHAIKU(1)
NAME
README.haiku - Perl version 5.10+ on Haiku
DESCRIPTION
This file contains instructions how to build Perl for Haiku and lists known problems.
BUILD AND INSTALL
The build procedure is completely standard:
./Configure -de
make
make install
Make perl executable and create a symlink for libperl:
chmod a+x /boot/common/bin/perl
cd /boot/common/lib; ln -s perl5/5.12.1/BePC-haiku/CORE/libperl.so .
Replace 5.12.1 with your respective version of Perl.
KNOWN PROBLEMS
The following problems are encountered with Haiku revision 28311:
o Perl cannot be compiled with threading support ATM.
o The "ext/Socket/t/socketpair.t" test fails. More precisely: the subtests using datagram sockets fail. Unix datagram sockets aren't
implemented in Haiku yet.
o A subtest of the "ext/Sys/Syslog/t/syslog.t" test fails. This is due to Haiku not implementing "/dev/log" support yet.
o The tests "lib/Net/Ping/t/450_service.t" and "lib/Net/Ping/t/510_ping_udp.t" fail. This is due to bugs in Haiku's network stack
implementation.
CONTACT
For Haiku specific problems contact the HaikuPorts developers: http://ports.haiku-files.org/
The initial Haiku port was done by Ingo Weinhold <ingo_weinhold@gmx.de>.
Last update: 2008-10-29
perl v5.12.1 2010-05-13 PERLHAIKU(1)