Re: need help with grep in eval

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 12/22/04


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


Relevant Pages

  • Re: ls
    ... On Thu, 11 Mar 2004 at 19:58 GMT, Michael Baswell wrote: ... are replying to. ... My code in this post is copyright 2004, Chris F.A. Johnson and may be copied under the terms of the GNU General Public License ...
    (comp.unix.questions)
  • Re: navin.
    ... Share this quote ... Navin R. Johnson: Well I'm gonna to go then! ... Marie: Because I just heard a song on the radio that reminded me of the ...
    (rec.sport.pro-wrestling)
  • Re: navin.
    ... Re: navin. ... Share this quote ... Navin R. Johnson: Well I'm gonna to go then! ... Marie: Because I just heard a song on the radio that reminded me of the ...
    (rec.sport.pro-wrestling)
  • Re: navin.
    ... Re: navin. ... Share this quote ... Navin R. Johnson: Well I'm gonna to go then! ... Marie: Because I just heard a song on the radio that reminded me of the ...
    (rec.sport.pro-wrestling)
  • Re: navin.
    ... Re: navin. ... Share this quote ... Navin R. Johnson: Well I'm gonna to go then! ... Marie: Because I just heard a song on the radio that reminded me of the ...
    (rec.sport.pro-wrestling)