command line shown by ps

lavinus at csgrad.cs.vt.edu lavinus at csgrad.cs.vt.edu
Sat Feb 23 06:00:03 AEST 1991


Hi!

In a C program, anyway, the way this is done is by modifying the argument
vector (argv).  This argument vector is what finger, w, etc. check to get the
name of the process.  FYI, the Internet Worm randomly changed its argument
vector to various commonly-seen process names, and also occasionally forked
off a copy of itself and killed off the parent, in order to change the process
ID indicated by ps.

So long...
Joe Lavinus
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Joseph W. Lavinus                           =     \  /      =
= Virginia Tech, Blacksburg, Virginia         =      \/__V    =
= email: lavinus at csgrad.cs.vt.edu             =      /\       =



More information about the Comp.unix.questions mailing list