Re: Change to "kludge option processing" in /bin/ps

From: Cyrille Lefevre (clefevre-lists_at_9online.fr)
Date: 06/03/04

  • Next message: Yar Tikhiy: "signal(SIGCHLD, SIG_IGN)"
    To: <arch@freebsd.org>
    Date: Thu, 3 Jun 2004 22:13:24 +0200
    
    

    why this message does not reach -arch ?
    don't know if Garance reeived it also ?

    "Garance A Drosihn" <drosih@rpi.edu> wrote:
    > At 5:08 PM +0200 5/31/04, Cyrille Lefevre wrote:
    > >
    > >before to commit new changes, think about how to fix the
    > >following ones :)
    > >
    > ># ps -p ,,
    > > PID TT STAT TIME COMMAND
    > > 0 ?? ZW 0:00.00 (sshd)
    > ># psx -p ,,
    > >psx: no process id specified
    >
    > The above issue was pretty trivial to fix, and I have committed a
    > change which should fix it.

    ok, let's try another issue :

    # ps -G " nobody "
      PID TT STAT TIME COMMAND
    75483 con- S 0:10.97 /usr/local/sbin/junkbuster configfile
    # ps -G ,nobody,
    ps: Invalid (zero-length) group name
    ps: Invalid (zero-length) group name
    # ps -G ,
    ps: Invalid (zero-length) group name
    ps: Invalid (zero-length) group name

    instead of :

    # ps -G " nobody "
      PID TT STAT TIME COMMAND
    75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile
    # ps -G ,nobody,
      PID TT STAT TIME COMMAND
    75483 co- S 0:10.97 /usr/local/sbin/junkbuster configfile
    # ps -G ,
    psx: no group name or id specified

    why do you make a difference while parsing commas and spaces ?
    in other words, ignore empty values (which may be generated by
    a shell script, so, don't warn), except if all values are empty.

    Cyrille Lefevre.

    -- 
    home: mailto:cyrille.lefevre@laposte.net
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Yar Tikhiy: "signal(SIGCHLD, SIG_IGN)"

    Relevant Pages

    • Re: Change to "kludge option processing" in /bin/ps
      ... think about how to fix the ... >> PID TT STAT TIME COMMAND ... ps: Invalid (zero-length) group name ...
      (freebsd-arch)
    • Re: Win2k machine wont recognize Win2k CD key
      ... | run Winnt32.exe from the Win2k installation CD. ... | I get this no matter what key I enter, and no matter which CD I use. ... | Any fix short of re-imaging the machine? ...
      (microsoft.public.win2000.registry)
    • Within-document links break when migrating from Word 2000 to Word 2003
      ... even OpenOffice.org Writer, and the links all work correctly. ... messages like "Error: Invalid Link". ... How can I fix this without having to strip out all the links and do ...
      (microsoft.public.word.application.errors)
    • Re: Odd or Even
      ... > I think that the fix to your function would depend on the situation - ... > rather than "Invalid value", which necessitates the function return a ... dark. ...
      (microsoft.public.excel.programming)