Re: need help with grep in eval
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 22 Dec 2004 17:57:36 GMT
On Wed, 22 Dec 2004 at 17:30 GMT, email@example.com wrote:
> Sorry, just realized I failed to answer a couple of your questions.
Please quote the relevant parts of the post to which you are replying.
> Basically as seen, the script's output is wrong:
> $ psscript "inetd -[st] -[st]"
> $ psscript "inetd"
> $ psscript "inetd | grep -v foo"
> 0 # <- should be 1 and is 1 if I change \"$proc\" to $proc in the
> solaris_ps(), although that causes the first case to fail
I don't remember what you had there.
> Lastly, if I'm not running SunOS, yes, pscmd is empty. I'm ok with
> that for now.
What do you think will happen if you execute that command with an
empty $pscmd? Use "pscmd=:" instead.
> I just wanted to write it so that it's easy to extend if
> need be, but everything this will run on will be SunOS.
-- Chris F.A. Johnson http://cfaj.freeshell.org/shell =================================================================== My code (if any) in this post is copyright 2004, Chris F.A. Johnson and may be copied under the terms of the GNU General Public License