On Sep 18, 5:34 pm, [EMAIL PROTECTED] (Steve Bertrand) wrote: > Somu wrote: > > How do i find out the process id of any process. When we see the task > > manager in Windows, we can see the programs running in the PC. Is > > there any way to know the same with perl? Does process id of a program > > change each time the program is run? > > #!/usr/bin/perl > > use warnings; > use strict; > > print "PID: $$\n"; > > -- > > cohiba# ./pid.pl > PID: 57355 > > HTH, > > Steve
actually $$ will return the current running perl module, but if you want to get invoked program from a perl module then you will have to list the running processes and grep in check this: http://www.thescripts.com/forum/thread703751.html good luck, SHMOIB -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/