This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
ps within DOS
- From: "Brian Warn" <bwarn-nm at seattletimes dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 29 Mar 2002 14:54:01 -0800
- 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/