Re: need help with grep in eval
From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 12/22/04
- Next message: tropicflite: "Re: Feeding data to a Citrix client"
- Previous message: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- In reply to: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Next in thread: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Reply: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Dec 2004 17:57:36 GMT
On Wed, 22 Dec 2004 at 17:30 GMT, sp00fd@yahoo.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]"
> 1
> $ psscript "inetd"
> 1
> $ 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
- Next message: tropicflite: "Re: Feeding data to a Citrix client"
- Previous message: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- In reply to: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Next in thread: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Reply: sp00fd_at_yahoo.com: "Re: need help with grep in eval"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|