$ exec -a "/sbin/getty 38400 tty7" your_cmd -erase_all_files
exec -a $NAME $COMMAND $ARGS
`your_cmd -erase_all_files` is the real process, but harmless-looking getty appears in the process table.
Never actually had a need to do this, but interesting nonetheless... Tested in bash, dash.
-a $NAME
"pass NAME as the zeroth argument to COMMAND", i.e. customise the name of the process (as commonly seen with `ps`)
by David Winterbottom (codeinthehole.com)
0sem comentários ainda