<div>Hi Rahul,</div>
<div> </div>
<div>you may need to look at "man ps" in linux. there are examples given in the "man ps". some are pasted...</div>
<div> </div>
<div>EXAMPLES<br> To see every process on the system using standard syntax:<br> ps -e<br> ps -ef<br> ps -eF<br> ps -ely</div>
<div> To print a process tree:<br> ps -ejH<br> ps axjf</div>
<div> To get info about threads:<br> ps -eLf<br> ps axms</div>
<div> To get security info:<br> ps -eo euser,ruser,suser,fuser,f,comm,label<br> ps axZ<br> ps -eM</div>
<div> To see every process running as root (real & effective ID) in user format:<br> ps -U root -u root u</div>
<div> To see every process with a user-defined format:<br> ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm<br> ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm<br> ps -eopid,tt,user,fname,tmout,f,wchan</div>
<div> Print only the process IDs of syslogd:<br> ps -C syslogd -o pid=</div>
<div> Print only the name of PID 42:<br> ps -p 42 -o comm=<br> <br><br></div>
<div class="gmail_quote">On Mon, Jan 10, 2011 at 2:15 PM, Rahul Kumar <span dir="ltr"><<a href="mailto:mailforgroup@gmail.com">mailforgroup@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I just want to know the command option for ps...so that i can see the<br>complete arguments for the executable running. Right now, i'm seeing<br>
the truncated output. This i need because i would like to rerun the<br>process with the same arguments.<br><br>Can any one help me out on this.<br><br>_______________________________________________<br>Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>S. Sengottuvelan.<br>