An example; `echo "test message" | /bin/mailx -s "hello" john@work.com` should probably work.
Check out the command under a shell prompt and make sure you copy it EXACTLY into the "backticks"; if you have to hit additional return keys or anything similar then it won't work as you first tried it.
HTH
Dave R
In reply to Re: can't get mailx to send from within a script
by LittleGreyCat
in thread can't get mailx to send from within a script
by Adrian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |