Quote:
|
Originally Posted by jlightner
Been a while since I've done it. You can use the "trap" command (this is a bash builtin) to define what to do when you receive a SIGHUP. You'd set the trap action in the script.
man bash
locate trap (at the beginning of a line - you'll see it multiple times before you get to the actual command).
|
Okay, thanks jlightner. I included the following in the script and it works.
trap 'rm -f /rbandmb/.passwords' SIGHUP
"/rbandmb" being my home directory. Thanks again.