ber 13, 2002 1:48 PM
Subject: Re: obtaining a process ID.
>
> Thanks all for the suggestions.
>
> Looks like I'm stuck using the ps command. I'm writing this script on an
> appliance system with very limited perl modules loaded (can't load more
> because it needs
Thanks all for the suggestions.
Looks like I'm stuck using the ps command. I'm writing this script on an
appliance system with very limited perl modules loaded (can't load more
because it needs to work on the appliance as it is shipped).
I appreciate the feedback.
-gomes
On Thu, 12 Dec 2002
Be Gomes wrote:
>
> I am familiar with ps, this is how I am currently getting the process ID:
>
> #!/usr/bin/perl -w
> use strict;
> my $pid = `ps -axo pid,ucomm |grep proxyd|cut -f 1 -d \"p\"`;
>
> But I was wondering if anyone new another means of doing so.
If you have the pgrep command:
my
On Wed, 11 Dec 2002 18:38:31 -0500, [EMAIL PROTECTED] (B-E-G
Gomes) wrote:
>
>Looking for a simple method of getting a single process ID (for a
>process such as syslogd) and store it in a scalar.
>
>I've found a few methods of doing so but they haven't been pretty.
>
>I'm taking suggestions :)
##
On Thu, 12 Dec 2002, Ramprasad A Padmanabhan wrote:
> No Mystik he did not mean own PID he meant PID of any process
>
> the only way you can do it is with ps or send a mail to a unix group
> for better ideas
>
> I always do this
>
> chomp($PID = `ps -ax |grep -v grep |grep $PROCESS | awk
]
From: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Ramprasad A Padmanabhan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], B-E-G Gomes <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Subject: Re: obtaining a process ID.
Date: Thu, 12 Dec 2002 07:32:33 -0500
I am familiar
SN: [EMAIL PROTECTED]
From: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Ramprasad A Padmanabhan <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], B-E-G Gomes <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Subject: Re: obtaining a process ID.
Date: Thu, 12 Dec 2002 07:32:33 -05
I am familiar with ps, this is how I am currently getting the process ID:
#!/usr/bin/perl -w
use strict;
my $pid = `ps -axo pid,ucomm |grep proxyd|cut -f 1 -d \"p\"`;
But I was wondering if anyone new another means of doing so.
Thanks.
-gomes
On Thu, 12 Dec 2002 13:24:20 +0530 Ramprasad A Pad
man ps
B-E-G Gomes wrote:
Looking for a simple method of getting a single process ID (for a
process such as syslogd) and store it in a scalar.
I've found a few methods of doing so but they haven't been pretty.
I'm taking suggestions :)
-gomes
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F