notify-pri-on-incon-degr.sh bash script simple q.

View: New views
1 Messages — Rating Filter:   Alert me  

notify-pri-on-incon-degr.sh bash script simple q.

by Martin Gombac( :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'll be using notify-pri-on-incon-degr.sh. I want to define to which
address it will mail results. I could enter the email@... directly
to the script, but i think this line:

# Default to sending email to root, unless otherwise specified
RECIPIENT=${1:=root}

allows me to add parameter ($1) to the script like this:

     pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh
email@...; /usr/lib/drbd/notify-emergency-reboot.sh; echo b >
/proc/sysrq-trigger ; reboot -f";

and it will mail to email@....

Someone please confirm. Simple yes will suffice. :-)

Thank you,
M.
_______________________________________________
drbd-user mailing list
drbd-user@...
http://lists.linbit.com/mailman/listinfo/drbd-user