* perl system("kill") function
@ 1999-04-15 16:01 Greg Mathis
1999-04-30 18:32 ` Greg Mathis
0 siblings, 1 reply; 2+ messages in thread
From: Greg Mathis @ 1999-04-15 16:01 UTC (permalink / raw)
To: cygwin
I am having a new problem using a perl script that runs in tcsh or bash.
This script ran fine before I upgraded to NT4.0 Service Pack 4.
I want to search though the list of processes and use 'kill' to send the
USR1 and USR2 POSIX signals to a particular C program built with gcc in
cygwin.
Perl code snippet:
$processList = `ps`;
(find the process id of interest ($pid) by searching by program name
through $processList)
system("kill -USR1 $pid);
After I run the perl program, the "ps" and "kill" from within the perl
script now show up when I call "ps" from the shell.. So if I run this
script over and over, the process list keeps growing. This did not
happen when I had only Service Pack 3 installed.
Any ideas on what is happening?
TIA,
Greg
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* perl system("kill") function
1999-04-15 16:01 perl system("kill") function Greg Mathis
@ 1999-04-30 18:32 ` Greg Mathis
0 siblings, 0 replies; 2+ messages in thread
From: Greg Mathis @ 1999-04-30 18:32 UTC (permalink / raw)
To: cygwin
I am having a new problem using a perl script that runs in tcsh or bash.
This script ran fine before I upgraded to NT4.0 Service Pack 4.
I want to search though the list of processes and use 'kill' to send the
USR1 and USR2 POSIX signals to a particular C program built with gcc in
cygwin.
Perl code snippet:
$processList = `ps`;
(find the process id of interest ($pid) by searching by program name
through $processList)
system("kill -USR1 $pid);
After I run the perl program, the "ps" and "kill" from within the perl
script now show up when I call "ps" from the shell.. So if I run this
script over and over, the process list keeps growing. This did not
happen when I had only Service Pack 3 installed.
Any ideas on what is happening?
TIA,
Greg
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-30 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-15 16:01 perl system("kill") function Greg Mathis
1999-04-30 18:32 ` Greg Mathis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).