not receiving the nagios notifications
Miles O'Neal
meo at intrinsity.com
Fri Jul 28 16:02:45 CEST 2006
Felipe Tocchetto said...
+I notice somethig:
+
+bash-3.00# printf TEST123 | mail -s "test mail to felipe" felipe at tocchetto.=
+com
+
+Without the "!" in the end of the subject it was sent with no problems
+
+bash-3.00# printf TEST123 | mail -s "test mail to felipe!" felipe at tocchetto=
+.com
+bash: !": event not found
+
+and now with the "!" in the end of the -s parameter. It wasnt send to me...
Since "!" tells bash to invoke a previous comand, bash
is trying to execute a bogus command (!"). If you want special
shell characters in a string, you need to escape them. Try
printf TEST123 | mail -s "test mail to felipe\!" felipe at tocchetto.com
If that doesn't work try
printf TEST123 | mail -s 'test mail to felipe\!' felipe at tocchetto.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list