![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ps command - time field | nhatch | UNIX for Dummies Questions & Answers | 1 | 05-12-2008 11:15 AM |
| Retrieve 5th Field to Last Field !! | jobbyjoseph | UNIX for Dummies Questions & Answers | 3 | 05-16-2007 03:20 AM |
| sed command to change 2nd field | Julius | Shell Programming and Scripting | 4 | 10-08-2006 08:30 AM |
| Moving Part of a field to another field using AWK | rjsha1 | Shell Programming and Scripting | 5 | 08-04-2006 05:39 AM |
| exec command and field descriptors.. | moxxx68 | UNIX for Dummies Questions & Answers | 5 | 12-04-2004 05:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PS Command Field
Is there any way to view the full contents of the command field when using ps -elf? I'm running a java process which has 4 lines worth of arguments. When i ps -elf no matter how much cut i use it will only display the first line of the command.
Thanks, |
|
|||||
|
Since you have posted in the Linux forum, I will assume that your OS is linux.
Get the PID of the java process. Replace the PID with its value in the following command. Code:
cat /proc/PID/cmdline All the procs will be in 1 single line with no visible spaces between them. Infact all of them are separated by NUL. You might want to replace the NUL with a whitespace and then view them. Ofcourse, this will have to be done programatically. Look at this URL - The /proc File System Vino Last edited by vino; 11-08-2005 at 08:35 AM.. Reason: Added an URL |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|