Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Process Identification

0 views
Skip to first unread message

michael.e.g...@fritolay.com

unread,
Feb 25, 2002, 7:18:09 PM2/25/02
to
Howdy,

I am trying to do some scripting to determine if an NT process is still
active. On a Unix platform if I do
ps -ef | grep ckntbsc, I might get a return such as:

entsys 203318 1 0 05:30:00 - 0:00 perl /entsys/local/bin/ckntbsc

From that I can Identify that ckntbsc is a perl script.

On NT when I do a tlist in a command prompt window, the return is very plain:

150 perl.exe

If I had 5 different perl scripts executing on an NT box, and wanted to kill a
specific one, how would I identify which is which. Is there a way in perl?

Thanks for the help,
Mike


----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email ab...@newsone.net

Jon Ericson

unread,
Feb 25, 2002, 10:24:21 PM2/25/02
to
michael.e.g...@fritolay.com writes:

> On NT when I do a tlist in a command prompt window, the return is
> very plain:
>
> 150 perl.exe
>
> If I had 5 different perl scripts executing on an NT box, and wanted
> to kill a specific one, how would I identify which is which. Is
> there a way in perl?

Perhaps the $$ variable (documented in perlvar) would be of help.

Jon
--
Two are better than one, because they have a good return for their
work: If one falls down, his friend can help him up... Though one
may be overpowered, two can defend themselves. A cord of three
strands is not quickly broken. -- Ecclesiastes 4:9,12 (NIV)

0 new messages