Menu ▾ ▴

#174 ps -o args does not work on darwin

v3.2.3
open-fixed
5
2007-05-26
2007-05-25
No

the -o option in darwin (OSX) does not support the "args" keyword.

This is used in the getpid() method of src/bin/sh.script.in. I removed that option and it worked .

Discussion

  • Anonymous

    Anonymous - 2007-05-25
    • labels: --> Shell / Batch Scripts
    • milestone: --> v3.2.3
     
  • Anonymous

    Anonymous - 2007-05-25

    Logged In: YES
    user_id=743156
    Originator: YES

    of course, if you remove this non-osx machines do not respond correctly, so I ended up using this:

    pidtest=`$PSEXE -p $pid -ww | grep "$WRAPPER_CMD" | tail -1`

    if [ "X$pidtest" = "X" ]
    then
    pidtest=`$PSEXE -p $pid -o args | grep "$WRAPPER_CMD" | tail -1`
    fi

     
  • Leif Mortenson

    Leif Mortenson - 2007-05-26

    Logged In: YES
    user_id=228081
    Originator: NO

    Sorry the 3.3.0 release has been taking a while to get everything tied up.
    This problem is known and has been fixed for the next release.
    You can get a copy of the latest script here:
    http://wrapper.svn.sourceforge.net/viewvc/\*checkout*/wrapper/trunk/wrapper/src/bin/sh.script.in

    Cheers,
    Leif

     
  • Leif Mortenson

    Leif Mortenson - 2007-05-26
    • assigned_to: nobody --> mortenson
    • status: open --> open-fixed
     

Log in to post a comment.