My process cmd is very long because there are lots of arguments. Now I would like to check the full cmd. By using cat /proc/PROCESS_NUMBER/cmdline, the cmd is not fully shown. Is there any other way to see exactly full cmd in linux?
|
|
|||
migrated from stackoverflow.com Nov 16 '12 at 9:01
|
How long is your command line? If it is in the megabyte range, you might perhaps recompile your kernel with a bigger
(there might also be a way to set that limit dynamically, but I forgot how, and I could be wrong) I do like big Don't put a huge value in Notice that addendaif for whatever reason you cannot afford a large command line, find some way and convention to avoid having such a large amount of program arguments. For instance, you could modify the invoked program to read some things from a file or some other source (database?). For example, some Unix programs (e.g. GCC) accept |
||||
|
ps -efwwww | grep <command name>? – jaume Nov 16 '12 at 12:09cat /proc/PROCESS_NUMBER/cmdlineThanks for let me know more aboutps:-) – DeepNightTwo Nov 17 '12 at 15:26