Felipe Tocchetto said...
+I notice somethig:
+
+bash-3.00# printf TEST123 | mail -s "test mail to felipe" [EMAIL PROTECTED]
+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!" [EMAIL PROTECTED]
+.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\!" [EMAIL PROTECTED]

If that doesn't work try

   printf TEST123 | mail -s 'test mail to felipe\!' [EMAIL PROTECTED]

-------------------------------------------------------------------------
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@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

Reply via email to