Re: ps with command line arguments

2013-05-20 Thread Christopher Faylor
On Mon, May 20, 2013 at 10:32:07AM +0200, AZ 9901 wrote: >Do you think ps command could be corrected / improved to display >"myscript" (script's name according to the example above) and/or >command line arguments ? We have no plans on modifying Cygwin's ps program. -- Problem reports: http:

Re: ps with command line arguments

2013-05-20 Thread AZ 9901
Le 7 mai 2013 à 15:30, AZ 9901 a écrit : > Le 7 mai 2013 à 10:46, AZ 9901 a écrit : > >> Hello, >> >> I run a bash script in a multi-user environment. >> This script uses "ps -ef" in particular to list all its instances. >> >> On a common UNIX / Linux system, it gives something like this : >> b

Re: ps with command line arguments

2013-05-07 Thread AZ 9901
Le 7 mai 2013 à 16:39, Warren Young a écrit : > Your script will also fail on most FreeBSD machines, for example. On > FreeBSD, there is a kernel build option that is often set which prevents user > space from *ever* seeing command line options. It's a security feature, > since there are all

Re: ps with command line arguments

2013-05-07 Thread Warren Young
On 5/7/2013 02:46, AZ 9901 wrote: This script uses "ps -ef" in particular to list all its instances. Any script that relies on 'ps' output parsing is probably unportable from the get-go. Your script will also fail on most FreeBSD machines, for example. On FreeBSD, there is a kernel build

Re: ps with command line arguments

2013-05-07 Thread AZ 9901
Le 7 mai 2013 à 10:46, AZ 9901 a écrit : > Hello, > > I run a bash script in a multi-user environment. > This script uses "ps -ef" in particular to list all its instances. > > On a common UNIX / Linux system, it gives something like this : > bobby 20326 20318 0 10:21 ?00:00:00 /bin/

ps with command line arguments

2013-05-07 Thread AZ 9901
Hello, I run a bash script in a multi-user environment. This script uses "ps -ef" in particular to list all its instances. On a common UNIX / Linux system, it gives something like this : bobby 20326 20318 0 10:21 ?00:00:00 /bin/bash ./myscript.sh marty 20330 20342 0 10:23 ?