ps within DOS
Brian Warn
bwarn-nm@seattletimes.com
Sat Mar 30 05:37:00 GMT 2002
I suppose that I could run this under cygwin's perl ...
-----Original Message-----
From: Brian Warn [mailto:bwarn-nm@seattletimes.com]
Sent: Friday, March 29, 2002 2:54 PM
To: 'cygwin@cygwin.com'
Subject: ps within DOS
As part of a (win32) perl program I'm running, I'm trying to run a
system ps command and return to the DOS shell (or whatever the shell is
known as in Win2K). From the command line, I can do the following, but
I stay in the bash shell:
C:> c:\cygwin\cygwin.bat | ps | exit
[ ps info here ]
my_machine $
The bottom line is that I want to read process info into an array as
follows:
@my_array=`cygwin.bat | ps | grep "desired string"`;
Any help is appreciated!
Thanks,
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list