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
o your command is not reliable enough for scripting and is also very slow > on large Unix systems with 1000's of processes running. ps -p is > immediate, reliable, and portable (it's SYSV/SVR4 standard). There's also always http://cygwin.com/contrib.html -- Unsubscribe i

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
Some Unix variants > might not have a space in the ps output between the PID and previous or > next column when one of the column's data is larger than the specified > printf format. > > So your command is not reliable enough for scripting and is also very > slow on

RE: ps -p

2005-07-27 Thread Don Beusee
w on large Unix systems with 1000's of processes running. ps -p is immediate, reliable, and portable (it's SYSV/SVR4 standard). -Don > -Original Message- > From: Carlo Florendo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 27, 2005 5:22 PM > To: Don Beusee &

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

ps -p

2005-07-27 Thread Don Beusee
Can you add the -p option? All flavors of Unix these days allows you to specify which PID to ps. -Don __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cy