On 06/12/2013 01:27 AM, Alexander Dalloz issued this missive:
Am 12.06.2013 09:27, schrieb Frank Murphy:
Every time azureus restarts (crashes out),
I have a script to send an email.

#!/bin/bash
mailx -s"Azureus has restarted" me@me.place \n
"It's probably crashed again."

echo "It's probably crashed again." | mail -s "Azureus has restarted"
me@me.place

Or:

mailx -s "Azureus has restarted" me@me.place <<-EOF
<tab>It's crashed again.
EOF

("<tab>" is a real TAB character).
Put whatever you want before "EOF", indented with tabs for appearance'
sake. For details look at the "Here Documents" part of "man bash". Very
useful.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ri...@alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-                     "Celibacy is not hereditary."                  -
-                                      -- Guy Goden                  -
----------------------------------------------------------------------
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to