changing cmd listing for ps -f
stephen.a.rago
sar0 at cbnewsl.att.com
Tue Jul 3 00:45:24 AEST 1990
In article <8259 at b11.ingr.com>, kiick at b11.ingr.com (chris kiick) writes:
> How can I change the command name that ps -f lists from within
> a program? What I'm trying to do is to fork off a process that will
> look different to a person doing a ps -f. Changing argv doesn't
> seem to do it. Any Ideas?
Try copying the command to a different name and, when the command
starts, have it look at argv[0]. If it's the original name, then exec
the other copy.
More information about the Comp.unix.wizards
mailing list