keith/etc...

i've tried to change the $0 from the perl script.... when i do a
"ps -ef/ps -aux" i still have the "perl foo.pl" displayed in the process
list...

my test code...
#
# test to change the process name.....
#

my $i=0;

for ($i=0;$i<100;$i++)
{
$0 = "temp";
  print "i= $i  name = $0\n";
  sleep(1);
}

die;

i've tried this on both windows/linux (rh8.0) with no luck... have you
managed to get it working..??? i'm running perl 5.8

thanks

-bruce...



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Keith C. Ivey
Sent: Saturday, July 03, 2004 2:27 PM
To: [EMAIL PROTECTED]
Subject: Re: perl to monitor other perl apps...


bruce <[EMAIL PROTECTED]> wrote:

> i'd also like to
> know if there is a way for the client perl app to place an
> identifier in the process table, or some other location that
> will allow the monitoring app to know the args that the client
> app is using...

On Linux, you can set $0 to change the way the process is
reported.  Unfortunately that doesn't seem to work on Windows.

--
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to