ps full output

ps full output

Post by cconnell_ » Mon, 18 Oct 2004 21:29:02


Hi All,
This is a question Ive been meaning to ask for ages but have never
found the answer. My quesion is howe to do you get the ps command to
show the output of all options to a process? ie when I do

ps -ef | grep mysql

I get
mysql 28878 1 0 13:19:49 pts/3 0:00 /bin/sh
/usr/local/mysql/bin/safe_mysqld -O key_buffer=192M -O table_cache=128

but there are more arguments to this (when I started it) but they are
stripped off the end of the line. I want to see all arguments/options,
is there an autowrap function to ps or something?

Operating system is solaris 8. The terminal Im using is ssh client but
it does the same when I use a vt terminal.
Thanks
 
 
 

ps full output

Post by Bit Twiste » Mon, 18 Oct 2004 21:31:41


Have you read the man page for ps looking for wide output?

 
 
 

ps full output

Post by Michael Vi » Tue, 19 Oct 2004 03:27:09

In article < XXXX@XXXXX.COM >,




Just in case he missed it:

args

"The command with all its arguments as a string. The implementation may
truncate this value to the field width; it is implementation-dependent
whether any further truncation occurs. It is unspecified whether the
string represented is a version of the argument list as it was passed to
the command when it started, or is a version of the arguments as they
may have been modified by the application. Applications cannot depend on
being able to modify their argument list and having that modification be
reflected in the output of ps. The Solaris implementation limits the
string to 80 bytes; the string is the version of the argument list as it
was passed to the command when it started."

--
DeeDee, don't press that button! DeeDee! NO! Dee...
 
 
 

ps full output

Post by kjak » Tue, 19 Oct 2004 04:48:11


i don't know about Solaris, but on Linux you would do:

ps ax|grep mysql

for example, when i do "ps ax|grep xterm" on my box i get:

30211 ? S 0:00 xterm -ls -bg black -cr green -fg white -C
-fn 9x15 -sl 500

it shows you (in order) pid, tty, stat, time, command (with
arguments). i think this is what you were asking for.
 
 
 

ps full output

Post by Stephane C » Tue, 19 Oct 2004 18:41:35

2004-10-17, 05:29(-07), chris-c:
[...]
[...]

Try with /usr/ucb/ps axwww

--
Stephane
 
 
 

ps full output

Post by cconnell_ » Tue, 19 Oct 2004 22:30:49


Thanks it does work on linux but not solaris. I cant seem to get it to
work on solaris even with the /usr/ucb/ps command.
 
 
 

ps full output

Post by Stephane C » Tue, 19 Oct 2004 22:54:07

2004-10-18, 06:30(-07), chris-c:
[...]

/usr/ucb/ps ww

will give you the whole list of arguments

$ zsh
$ sleep 400 {1..100000} &
[1] 21687
$ /usr/ucb/ps ww $!| wc
2 100011 588961

unless the arg list contains a non-printable character:

$ sleep 400 $'\r' &
[1] 22385
$ /usr/ucb/ps ww $!
PID TT S TIME COMMAND
22385 pts/1 S 0:00 [ sleep ]

--
Stephane
 
 
 

ps full output

Post by cconnell_ » Wed, 20 Oct 2004 05:32:36


Great thanks - that works a treat much obliged.