Re: Question about the ps command, missing option -o to format the output

2014-03-26 Thread Christopher Faylor
On Wed, Mar 26, 2014 at 12:18:28PM +0100, m0viefreak wrote: >On Wed, Mar 26, 2014 at 10:59:04AM +, Holger Dietze wrote: >>I have searched the man page and the Cygwin projects, but did not found >>a way to get this working. > >Cygwin uses a custom ps program that can also handle windows processe

AW: Question about the ps command, missing option -o to format the output

2014-03-26 Thread Holger Dietze
> But if it works it at least a workaround. And it works: $ procps PID TTY TIME CMD 18124 pty1 00:00:00 procps 4112 pty1 00:00:01 bash $ procps -p 4112 -o pid= -o comm= 4112 bash Thank you. -- Problem reports: http://cygwin.com/problems.html FAQ: h

AW: Question about the ps command, missing option -o to format the output

2014-03-26 Thread Holger Dietze
Hi, > The version you are looking for is available from the procps package. > The ps binary is also named "procps". thank you, I will check this. It is a bit un-comfortable to check the OS where my scripts are running to use a different ps-binary. But if it works it at least a workaround. --

Re: Question about the ps command, missing option -o to format the output

2014-03-26 Thread m0viefreak
> I have searched the man page and the Cygwin projects, but did not found a way > to get > this working. Cygwin uses a custom ps program that can also handle windows processes but which does not support all those options. The version you are looking for is available from the procps package. The

Question about the ps command, missing option -o to format the output

2014-03-26 Thread Holger Dietze
Hello, I am writing some scripts for linux and cygwin. To find out, if a given pid (from /var/run/ is really the pid of the correct process I use the ps command on linux (and AIX, Solaris, even HPUX with a trick) with the option -o pid= Example: # ps -ef | grep bash root 1118 1112 0 11

Re: ps command (process status) does not return anything anymore

2011-03-28 Thread Jeremy Bopp
On 3/28/2011 13:04, Antha Lamus wrote: > Hi all, > I recently installed a newer version of bash and now the "ps" command > does not issue anything anymore (return code is 128). in fact, even > the options seem different as I don't see "-W" in the man any

ps command (process status) does not return anything anymore

2011-03-28 Thread Antha Lamus
Hi all, I recently installed a newer version of bash and now the "ps" command does not issue anything anymore (return code is 128). in fact, even the options seem different as I don't see "-W" in the man anymore. also, I can pretty much issue anything I wa

Re: ps COMMAND column

2009-01-14 Thread Ehud Karni
On Tue, 13 Jan 2009 17:14:20, Paul McFerrin wrote: > > Is there a way to get "ps" to display more on the COMMAND column? Use the "procps" command instead. It works like the "ps" command on Linux. For example I use the following command: procps -e -o user,

RE: ps COMMAND column

2009-01-13 Thread Buchbinder, Barry (NIH/NIAID) [E]
Paul McFerrin wrote on Tuesday, January 13, 2009 5:14 PM: > Is there a way to get "ps" to display more on the COMMAND column? Doesn't look like it. But try $ pstree -a $ procps -f $ procps -F -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwi

ps COMMAND column

2009-01-13 Thread Paul McFerrin
Is there a way to get "ps" to display more on the COMMAND column? It appears to display only argv[0] and none of the others. So when executing ksh scripts, they all show up as "ksh". Or if you have multiple executions of a single command, it makes it hard to identify which one you want to ki

Re: ps command

2007-05-22 Thread Corinna Vinschen
On May 22 12:29, Thorsten Kampe wrote: > The Cygwin ps allows to watch Windows processes also (with -W). Is > that possible for procps, too? procps uses /proc to retrieve process information. Non-Cygwin processes don't show up in /proc. Corinna -- Corinna Vinschen Please, se

Re: ps command

2007-05-22 Thread Thorsten Kampe
* Brian Dessent (Mon, 21 May 2007 22:34:50 -0700) > Brian Salter-Duke wrote: > > because qseek is a perl script. Is there any way that I can get output > > of the running processes that will include the text, 'qseek'? Or can > > anyone suggest a work around. I need a script to be able to find out >

Re: ps command

2007-05-22 Thread Brian Salter-Duke
On Mon, May 21, 2007 at 10:34:50PM -0700, Brian Dessent wrote: > Brian Salter-Duke wrote: > > > because qseek is a perl script. Is there any way that I can get output > > of the running processes that will include the text, 'qseek'? Or can > > anyone suggest a work around. I need a script to be ab

Re: ps command

2007-05-21 Thread Brian Dessent
Brian Salter-Duke wrote: > because qseek is a perl script. Is there any way that I can get output > of the running processes that will include the text, 'qseek'? Or can > anyone suggest a work around. I need a script to be able to find out > whether qseek is running, in order to start it if it is

ps command

2007-05-21 Thread Brian Salter-Duke
Apologies for asking this. I asked it many years ago and did not get an answer that allowed me to progress. I can not find the earlier replies but of course cygwin has improved since then. I have a program that runs in the background a bit like at daemon. It is called 'qseek'. I want to know wheth

Re: display ps command line parameters

2007-05-01 Thread Igor Peshansky
On Tue, 1 May 2007, [EMAIL PROTECTED] wrote: > All, > Thanks for your replies. > > > An alternative would be to parse /proc/PID/cmdline. > > I think I'll use Tony's solution, as I don't have pstree available on my > "development" or "live" Cygwin installation. This would be quicker as I can > use

Re: display ps command line parameters

2007-05-01 Thread Christopher Faylor
On Tue, May 01, 2007 at 10:41:19AM +0100, [EMAIL PROTECTED] wrote: >> An alternative would be to parse /proc/PID/cmdline. >I think I'll use Tony's solution, as I don't have pstree available on my >"development" or "live" Cygwin installation. This would be quicker as I can >use it straight "out of

Re: display ps command line parameters

2007-05-01 Thread [EMAIL PROTECTED]
All, Thanks for your replies. > An alternative would be to parse /proc/PID/cmdline. I think I'll use Tony's solution, as I don't have pstree available on my "development" or "live" Cygwin installation. This would be quicker as I can use it straight "out of the box". I was looking for exactly s

Re: display ps command line parameters

2007-04-30 Thread Matthew Woehlke
Matthew Woehlke wrote: Dave Korn wrote: On 30 April 2007 19:23, Matthew Woehlke wrote: Anyway, since the information is available, and most other *nix's 'ps' provides it, any reason Cygwin's 'ps' shouldn't do the same? I believe you can probably guess the answer to this one... particularly

Re: display ps command line parameters

2007-04-30 Thread Matthew Woehlke
Dave Korn wrote: On 30 April 2007 19:23, Matthew Woehlke wrote: Dave Korn wrote: On 30 April 2007 18:48, Matthew Woehlke wrote: um... and since Cygwin has this information, doesn't this mean that 'ps' is missing a feature that is standard to pretty much every other *nix implementation of 'ps

RE: display ps command line parameters

2007-04-30 Thread Dave Korn
On 30 April 2007 19:23, Matthew Woehlke wrote: > Dave Korn wrote: >> On 30 April 2007 18:48, Matthew Woehlke wrote: >> >>> um... and since Cygwin has this information, doesn't this mean that 'ps' >>> is missing a feature that is standard to pretty much every other *nix >>> implementation of 'ps'?

Re: display ps command line parameters

2007-04-30 Thread Matthew Woehlke
Dave Korn wrote: On 30 April 2007 18:48, Matthew Woehlke wrote: um... and since Cygwin has this information, doesn't this mean that 'ps' is missing a feature that is standard to pretty much every other *nix implementation of 'ps'? (I don't have a POSIX standard handy Yes you do: open brows

RE: display ps command line parameters

2007-04-30 Thread Dave Korn
On 30 April 2007 18:48, Matthew Woehlke wrote: > um... and since Cygwin has this information, doesn't this mean that 'ps' > is missing a feature that is standard to pretty much every other *nix > implementation of 'ps'? (I don't have a POSIX standard handy Yes you do: open browser, google "pos

Re: display ps command line parameters

2007-04-30 Thread Matthew Woehlke
Tony Richardson wrote: Andy Jet-Net jet-net.co.uk> writes: In "ps -s" I get something like: PID TTYSTIME COMMAND 1234 con 09:00:00 /path/program Is there a way of doing this through ps (or an alternative) in Cygwin? An alternative would be to parse /proc/PID/cmdline. Arguments are

Re: display ps command line parameters

2007-04-30 Thread Igor Peshansky
On Mon, 30 Apr 2007, [EMAIL PROTECTED] wrote: > Hi all, > > I'm trying to get parameters entered at the Cygwin command line to > appear on my ps command, and failing miserably! > > i.e. I'm running the following process at the command line: > > program paramet

Re: display ps command line parameters

2007-04-30 Thread Tony Richardson
Andy Jet-Net jet-net.co.uk> writes: > In "ps -s" I get something like: > > PID TTYSTIME COMMAND > 1234 con 09:00:00 /path/program > > Is there a way of doing this through ps (or an alternative) in Cygwin? An alternative would be to parse /proc/PID/cmdline. Arguments are separated by nu

Re: display ps command line parameters

2007-04-30 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: Hi all, I'm trying to get parameters entered at the Cygwin command line to appear on my ps command, and failing miserably! i.e. I'm running the following process at the command line: program parameter1 In "ps -s" I get something like: PID

RE: display ps command line parameters

2007-04-30 Thread Dave Korn
On 30 April 2007 12:36, [EMAIL PROTECTED] wrote: > Hi all, > > I'm trying to get parameters entered at the Cygwin command line to appear on > my ps command, and failing miserably! > Is there a way of doing this through ps (or an alternative) in Cygwin? If it doesn't

display ps command line parameters

2007-04-30 Thread [EMAIL PROTECTED]
Hi all, I'm trying to get parameters entered at the Cygwin command line to appear on my ps command, and failing miserably! i.e. I'm running the following process at the command line: program parameter1 In "ps -s" I get something like: PID TTYSTIME COMMAND 1234

Re: ps command showing unknown flags

2004-06-11 Thread Joshua Daniel Franklin
On Fri, 11 Jun 2004 11:55:53 -0400 (EDT), Igor Pechtchanski > According to the "ps.cc" source (which, at the moment, seems to be the > best documentation for the status column) Thanks Igor. The official documentation is now being updated to include this information... -- Unsubscribe info: h

Re: ps command showing unknown flags

2004-06-11 Thread Igor Pechtchanski
On Fri, 11 Jun 2004, Shaffer, Kenneth wrote: > I recently ran the ps command and saw an unknown flag, "I", displayed in > column 1. There was no heading above it and the man page wasn't much > help. > > What does this mean? Where can I find documentation on per

ps command showing unknown flags

2004-06-11 Thread Shaffer, Kenneth
I recently ran the ps command and saw an unknown flag, "I", displayed in column 1. There was no heading above it and the man page wasn't much help. What does this mean? Where can I find documentation on perhaps other flags? -- Ken Shaffer - - - - - - - Appended by Sci

RE: ps command - revisited

2002-04-09 Thread Alan Dobkin
--On Wednesday, April 10, 2002 2:39 PM +1000 Robert Collins <[EMAIL PROTECTED]> wrote: >> > What is the 'System process'? >> >> Look at the output from the Task Manager. > > Sure, there's no 'System process'. Do you mean the > 'System Idle process' aka the scheduler? > > Rob No, it's a separ

Re: ps command - revisited

2002-04-09 Thread Alan Dobkin
--On Wednesday, April 10, 2002 12:23 AM -0400 Christopher Faylor <[EMAIL PROTECTED]> wrote: > On Tue, Apr 09, 2002 at 11:59:08PM -0400, Alan Dobkin wrote: >> I don't intend to submit a patch for this either, at least not >> any time soon, but I would be happy to provide information and >> testi

RE: ps command - revisited

2002-04-09 Thread Robert Collins
> -Original Message- > From: Christopher Faylor [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 2:24 PM > To: [EMAIL PROTECTED] > Subject: Re: ps command - revisited > > > On Wed, Apr 10, 2002 at 02:03:15PM +1000, Robert Collins wrote: &g

Re: ps command - revisited

2002-04-09 Thread Christopher Faylor
On Wed, Apr 10, 2002 at 02:03:15PM +1000, Robert Collins wrote: >> -Original Message- >> From: Alan Dobkin [mailto:[EMAIL PROTECTED]] >> Sent: Wednesday, April 10, 2002 1:59 PM > >>Similarly, the System process should be identified as such instead of >>unknown. > >What is the 'System proc

Re: ps command - revisited

2002-04-09 Thread Christopher Faylor
On Tue, Apr 09, 2002 at 11:59:08PM -0400, Alan Dobkin wrote: >>The functionality you see now is all that I plan on providing. >> >>Patches are, as always, gratefully accepted, however. > >I don't intend to submit a patch for this either, at least not any time >soon, but I would be happy to provide

RE: ps command - revisited

2002-04-09 Thread Robert Collins
> -Original Message- > From: Alan Dobkin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 1:59 PM > Similarly, > the System process should be identified as such instead of unknown. What is the 'System process'? Rob -- Unsubscribe info: http://cygwin.com/ml/#unsub

Re: ps command - revisited

2002-04-09 Thread Alan Dobkin
--On Tuesday, April 09, 2002 11:08 PM -0400 Christopher Faylor <[EMAIL PROTECTED]> wrote: > As with so many other things in Cygwin, what you see is what > you get from the underlying Windows API that we're using. If > certain processes aren't showing up when we say "give me all > of your proc

Re: ps command - revisited

2002-04-09 Thread Christopher Faylor
On Tue, Apr 09, 2002 at 10:59:36PM -0400, Alan Dobkin wrote: >I don't know why Chris's process isn't showing up, but I can attest to >the fact that all Windows processes, including those associated with >services *do* appear in the ps -W output, with only two exceptions: the >System Idle Process (

Re: ps command - revisited

2002-04-09 Thread Alan Dobkin
April 09, 2002 7:28 PM -0400 Christopher Faylor <[EMAIL PROTECTED]> wrote: > On Tue, Apr 09, 2002 at 05:17:42PM -0400, [EMAIL PROTECTED] > wrote: >> Hi all, specially Corinna, >> >> Corinna, maybe you can help out here. The UNIX ps command reports all and >> ev

Re: ps command - revisited

2002-04-09 Thread Christopher Faylor
On Tue, Apr 09, 2002 at 05:17:42PM -0400, [EMAIL PROTECTED] wrote: >Hi all, specially Corinna, > >Corinna, maybe you can help out here. The UNIX ps command reports all and >every process running on the machine, the Windows (cygwin) ps command >however, omits WinNT/Win2K ser

RE: ps command - revisited

2002-04-09 Thread Heribert Dahms
TECTED]] > Sent: Tuesday, April 09, 2002 23:44 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: ps command - revisited > > Been there, done that - that's not it. I can see this process in 'Task > Manager': > admsrvc.exe, pid=508, it's runn

RE: ps command - revisited

2002-04-09 Thread CRuprecht
. In my search for a utility which does, I came across an article about cygwin's ps command which explicitly states that it's not a complete implementation. And yes, I have read the man pages, and I am aware of the W option .. *sigh* ... ;-). Best regards, Chris > -Original Message--

Re: ps command - revisited

2002-04-09 Thread Roland Glenn McIntosh
*sigh* RTFM. ps -Wef -rgm At 05:17 PM 04.09.2002 -0400, you wrote: >Hi all, specially Corinna, > >Corinna, maybe you can help out here. The UNIX ps command reports all and >every process running on the machine, the Windows (cygwin) ps command >however, omits WinNT/Win2K

ps command - revisited

2002-04-09 Thread CRuprecht
Hi all, specially Corinna, Corinna, maybe you can help out here. The UNIX ps command reports all and every process running on the machine, the Windows (cygwin) ps command however, omits WinNT/Win2K services, which is something we would like to have working. Would it be possible to extent the