viewing complete command
Hi, I just want to know the command option for ps...so that i can see the complete arguments for the executable running. Right now, i'm seeing the truncated output. This i need because i would like to rerun the process with the same arguments. Can any one help me out on this.
Hi Rahul, you may need to look at "man ps" in linux. there are examples given in the "man ps". some are pasted... EXAMPLES To see every process on the system using standard syntax: ps -e ps -ef ps -eF ps -ely To print a process tree: ps -ejH ps axjf To get info about threads: ps -eLf ps axms To get security info: ps -eo euser,ruser,suser,fuser,f,comm,label ps axZ ps -eM To see every process running as root (real & effective ID) in user format: ps -U root -u root u To see every process with a user-defined format: ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm ps -eopid,tt,user,fname,tmout,f,wchan Print only the process IDs of syslogd: ps -C syslogd -o pid= Print only the name of PID 42: ps -p 42 -o comm= On Mon, Jan 10, 2011 at 2:15 PM, Rahul Kumar <mailforgroup@gmail.com> wrote:
Hi,
I just want to know the command option for ps...so that i can see the complete arguments for the executable running. Right now, i'm seeing the truncated output. This i need because i would like to rerun the process with the same arguments.
Can any one help me out on this.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, S. Sengottuvelan.
On Mon, Jan 10, 2011 at 2:15 PM, Rahul Kumar <mailforgroup@gmail.com> wrote:
Hi,
I just want to know the command option for ps...so that i can see the complete arguments for the executable running. Right now, i'm seeing the truncated output. This i need because i would like to rerun the process with the same arguments.
Can any one help me out on this.
The command line switch you are looking for is -f. its not a good idea to use this mailing list for these types of questions. You should consider asking these questions on sys admin forums.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________ From: kernelnewbies-bounces@kernelnewbies.org [kernelnewbies-bounces@kernelnewbies.org] On Behalf Of Rahul Kumar [mailforgroup@gmail.com] Sent: Tuesday, January 11, 2011 3:45 AM To: kernelnewbies@nl.linux.org Subject: viewing complete command Hi,
I just want to know the command option for ps...so that i can see the complete arguments for the executable running. Right now, i'm seeing the truncated output. This i need because i would like to rerun the process with the same arguments.
Can any one help me out on this.
If you are intrested in particular process cat /proc/$pid/cmdline : will fetch you the entire command _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ______________________________________________________________________ The contents of this e-mail and any attachment(s) may contain confidential or privileged information for the intended recipient(s). Unintended recipients are prohibited from taking action on the basis of information in this e-mail and using or disseminating the information, and must notify the sender and delete it from their system. L&T Infotech will not accept responsibility or liability for the accuracy or completeness of, or the presence of any virus or disabling code in this e-mail" ______________________________________________________________________
participants (4)
-
Rahul Kumar -
Sengottuvelan S -
Smital Desai -
Venkatram Tummala