perl to monitor other perl apps...

2004-07-03 Thread bruce
hi... i'm in need of a way to monitor perl apps running on remote systems, both windows/linux. each client perl app will be using command line args, ie (perl foo.pl 'arg1, arg2'). i'd like to knwo what might be the best way to actually monitor the remote machinces to determine the

Re: perl to monitor other perl apps...

2004-07-03 Thread Keith C. Ivey
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

Re: perl to monitor other perl apps...

2004-07-03 Thread Trevor Joerges [SendMIME Software]
You could write a wrapper for the application so that when it launched it logs the information you want to a DB, tracks and reports the performance of the launched application using Win32::Perflib and reports process closure to the DB as well. I've done something similar to this before for

RE: perl to change process name

2004-07-03 Thread bruce
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;$i100;$i++) { $0 = temp; print i= $i name = $0\n;