ps -ef -o args

Hi Guys!

I'm working on some perl scripts which need to check some config files from running processes. My problem is that the with of the args column of the ps command sometimes is too small to display the full path of the config file.

Till now I haven't found a solution to enlarge the column.

Has anybody got some suggestions?

greets

kleinerroemer

[389 byte] By [kleinerroemera] at [2007-11-27 1:43:43]
# 1
check out the ucb version of ps: http://docs.sun.com/app/docs/doc/816-0210/6m6nb7mif?a=view
lovenlifea at 2007-7-12 1:02:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

/usr/bin/ps displays the kernel buffer that holds a portion of the initial execution string. That buffer is limited to 80 characters.

You can display the process's buffer (ARGV[0]) via 'pargs' if you have sufficient privileges (or via /usr/ucb/ps on older systems), but be aware that the process can change that buffer as it runs.

--

Darren

Darren_Dunhama at 2007-7-12 1:02:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Thanks thats it!works great!Greets
kleinerroemera at 2007-7-12 1:02:00 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...