S
seema
Hi all,
I am new to perl programming, I have return a perl script to get the
pid of all my_app currently running on HP-UX box,
#!/usr/bin/perl
@process_array= `ps -ef | grep my_app | grep -v grep | awk '{print
$2}'`;
foreach $index (@process_array)
{
print $index, "\n";
}
It doesnt give the pid of my_app am I doing some thing wrong here??
Thanks in advance,
I am new to perl programming, I have return a perl script to get the
pid of all my_app currently running on HP-UX box,
#!/usr/bin/perl
@process_array= `ps -ef | grep my_app | grep -v grep | awk '{print
$2}'`;
foreach $index (@process_array)
{
print $index, "\n";
}
It doesnt give the pid of my_app am I doing some thing wrong here??
Thanks in advance,