[PLUG] Shell command needs an explanation

Matt Alexander lug at phxlinux.org
Sun Aug 8 15:47:02 UTC 2004


On Sun, 8 Aug 2004, Rich Shepard wrote:

>   I do not understand what the following line in a cron.daily script is
> supposed to accomplish. The kill man page does not contain the options
> listed and I cannot see the relationship to killing a cat of a file.
>
> kill -USR1 `cat /var/run/thttpd.pid`
>
>   Please explain this to me.

/var/run/thttpd.pid contains the process ID for thttpd.  So we cat
that file in a subshell and get the PID.  Then we kill it.
~M






More information about the PLUG mailing list