Re: ps -p

2005-07-31 Thread Joe Smith
if [ -d c:/ ] then {Cygwin stuff} else {Unix equivalent} fi More common (AFAICT) is: case `uname` in *CYGWIN* ) {Cygwin stuff};; *) {Unix equivalent};; esac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Document

Re: ps -p

2005-07-28 Thread Joshua Daniel Franklin
On 7/27/05, Don Beusee wrote: > That's not good enough for scripting. First of all, the command is not so > simple (you have to grep -v grep also - so that the same script works on > Unix systems) and if you have small PID number like 14, that will likely > return lots of other processes (like 114

RE: ps -p

2005-07-28 Thread fergus
> That's not good enough for scripting. An expectation of complete congruence Unix <> Cygwin seems unrealistically high to me. I've got a few scripts incorporating a branch as follows #! /bin/sh if [ -d c:/ ] then {Cygwin stuff} else {Unix equiv

RE: ps -p

2005-07-27 Thread Igor Pechtchanski
Ugh, top-posting. Reformatted. On Wed, 27 Jul 2005, Don Beusee wrote: > > -Original Message- > > From: Carlo Florendo [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 27, 2005 5:22 PM > > To: Don Beusee > > Cc: [EMAIL PROTECTED] . Thanks.

RE: ps -p

2005-07-27 Thread Don Beusee
gt; Cc: cygwin@cygwin.com > Subject: Re: ps -p > > Don Beusee wrote: > > >Can you add the -p option? All flavors of Unix these > days allows > >you to specify which PID to ps. > > > > >

Re: ps -p

2005-07-27 Thread Carlo Florendo
Don Beusee wrote: Can you add the -p option? All flavors of Unix these days allows you to specify which PID to ps. ps | grep -- Carlo Florendo Astra Philippines Inc. www.astra.ph -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.co