Hiya,
I need some Perl help!!
Basically, I'm running a Perl script on Unix which makes a call to 'nohup' and starts a process off in the Background. 'nohup' returns a process id number (pid) which is also being used by my script.
If I do a 'ps -efx' after calling 'nohup' I will see my command in the current process list. Simplified example:
12234 abcd /opt/app/weblogic/bin/startweblogic -servername=MyServer -domainname=MyDomain
'12234' is the process number and the remaining entries are the details of that current process.
What I need to do in Perl is to be able to perform a pattern match on the details of the process I have just submitted using 'nohup'. Is there something in Perl I can use to search for the details of all current processes, identify the process I have just submitted using the pid returned form 'nohup' and then pattern match the details of that pid entry?
Any help would be greatly appreciated!!
Thanks,
James
I need some Perl help!!
Basically, I'm running a Perl script on Unix which makes a call to 'nohup' and starts a process off in the Background. 'nohup' returns a process id number (pid) which is also being used by my script.
If I do a 'ps -efx' after calling 'nohup' I will see my command in the current process list. Simplified example:
12234 abcd /opt/app/weblogic/bin/startweblogic -servername=MyServer -domainname=MyDomain
'12234' is the process number and the remaining entries are the details of that current process.
What I need to do in Perl is to be able to perform a pattern match on the details of the process I have just submitted using 'nohup'. Is there something in Perl I can use to search for the details of all current processes, identify the process I have just submitted using the pid returned form 'nohup' and then pattern match the details of that pid entry?
Any help would be greatly appreciated!!
Thanks,
James