Unix True 64 - [Tru64]: Random output of 'ps' command

This is Interesting: Free IT Magazines  
Home > Archive > Unix True 64 > November 2005 > [Tru64]: Random output of 'ps' command





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Tru64]: Random output of 'ps' command
Vecchiato, Michele

2005-11-11, 2:54 am

Problem:

The command "ps -eo args" generate random output
(executed on OSF1 V5.1 732 alpha system):

....
/usr/sbin/binlogd
[syslogd] <---
/usr/sbin/mountd -i
....

or

....
/usr/sbin/binlogd
/usr/sbin/syslogd <---
/usr/sbin/mountd -i
....

Why this different output?
Excuse me for the bad english, but i'm italian

Michele

--
Michele Vecchiato
|_|0|_| <callto://m.vecchiato>
|_|_|0| <http://skia.altervista.org>
|0|0|0| <mailto:michele.vecchiato@gmail.com>
--
Michele Vecchiato
|_|0|_| <callto://m.vecchiato>
|_|_|0| <http://skia.altervista.org>
|0|0|0| <mailto:michele.vecchiato@gmail.com>
nafc@snet.net

2005-11-11, 6:00 pm

Michele,

This is from the manpage for 'ps':

-f Attempts to generate a full listing. Under certain circumstances,
the
-f option does not return the full path and arguments of a
process.
Instead, it will return a bracketed process name such as
[process_name]. This behavior conforms with the XPG4 standard.

Although it's for the -f option it seems to apply here as well. In
other words, it's normal behavior.

nafc

Vecchiato, Michele wrote:
> Problem:
>
> The command "ps -eo args" generate random output
> (executed on OSF1 V5.1 732 alpha system):
>
> ...
> /usr/sbin/binlogd
> [syslogd] <---
> /usr/sbin/mountd -i
> ...
>
> or
>
> ...
> /usr/sbin/binlogd
> /usr/sbin/syslogd <---
> /usr/sbin/mountd -i
> ...
>
> Why this different output?
> Excuse me for the bad english, but i'm italian
>
> Michele
>
> --
> Michele Vecchiato
> |_|0|_| <callto://m.vecchiato>
> |_|_|0| <http://skia.altervista.org>
> |0|0|0| <mailto:michele.vecchiato@gmail.com>
> --
> Michele Vecchiato
> |_|0|_| <callto://m.vecchiato>
> |_|_|0| <http://skia.altervista.org>
> |0|0|0| <mailto:michele.vecchiato@gmail.com>


Bob Harris

2005-11-11, 8:49 pm

In article <437440a5$0$8488$5fc30a8@news.tiscali.it>,
"Vecchiato, Michele" <michele.vecchiato@gmail.com> wrote:

> Problem:
>
> The command "ps -eo args" generate random output
> (executed on OSF1 V5.1 732 alpha system):
>
> ...
> /usr/sbin/binlogd
> [syslogd] <---
> /usr/sbin/mountd -i
> ...
>
> or
>
> ...
> /usr/sbin/binlogd
> /usr/sbin/syslogd <---
> /usr/sbin/mountd -i
> ...
>
> Why this different output?
> Excuse me for the bad english, but i'm italian
>
> Michele
>
> --
> Michele Vecchiato
> |_|0|_| <callto://m.vecchiato>
> |_|_|0| <http://skia.altervista.org>
> |0|0|0| <mailto:michele.vecchiato@gmail.com>


I'm not totally sure, but I think this happens when the process is
swapped out, so that the only information still in memory is the
program name. To get the rest would require swapping in the
process, and that can be very annoying to have ps thrash the
system.

Bob Harris
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com