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
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
> 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
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
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
&
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
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
7 matches
Mail list logo