Date: Fri, 5 Jan 2001 09:47:21 -0600 From: Dan Nelson <dnelson@emsphone.com> To: Eric_Stanfield@kenokozie.com Cc: Jan Grant <Jan.Grant@bristol.ac.uk>, freebsd-questions@FreeBSD.ORG Subject: Re: ps command Message-ID: <20010105094720.A5994@dan.emsphone.com> In-Reply-To: <OF19F4D5DB.348DBEC2-ON862569CB.004FC271@kka.com>; from "Eric_Stanfield@kenokozie.com" on Fri Jan 5 08:33:29 GMT 2001 References: <OF19F4D5DB.348DBEC2-ON862569CB.004FC271@kka.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 05), Eric_Stanfield@kenokozie.com said:
> Yeah I'd certainly be interested in the functionality. It's a pain
> in the ass moving between solaris and bsd boxes and, without fail,
> feeding ps the wrong syntax for its switches. Of course the easy
> solution on machines I have directo control over is just to alias the
> cmd to reflect its usage on the opposite OS.
A great workaround for Solaris boxes is to put this shell script in
/usr/local/bin:
#! /bin/sh
case $1 in
-* ) exec /usr/bin/ps "$@" ;;
* ) exec /usr/ucb/ps "$@" ;;
esac
If you run it with dash arguments, you get sysV ps, otherwise you get
BSD ps.
--
Dan Nelson
dnelson@emsphone.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010105094720.A5994>
