[cs631apue] setproctitle()

Jan Schaumann jschauma at stevens.edu
Sat Dec 8 18:34:00 EST 2012

yluo4 <yluo4 at stevens.edu> wrote:
> Thank you for your answer! But could you please give an example of using 
> ps to get the key?  Because I have tried to use ps and can't get it. 

If you run

echo 'secret' | ./bfed -k cafefacedeadbeef

and at the same time look at the process table using ps(1), you will see
the command together with all arguments:

$ ps | grep bfe[d]
 4864 ttys003    0:00.00 ./bfed -k cafefacedeadbeef


More information about the cs631apue mailing list