Hi
how to include the hostname in the subject of an email send by mailx?
mailx -s "here goes the subject `uname -n`" abc@xyz.com
or `hostname` list the words as is
thank you
Hi
how to include the hostname in the subject of an email send by mailx?
mailx -s "here goes the subject `uname -n`" abc@xyz.com
or `hostname` list the words as is
thank you
I will suggest you to have a subject is a variable and then use that variable in mailx command.
I hope this will work..
Thanks,
swat