I need to send my report.txt file to given mail address from my shell script.I tried this one:
mailx -s "report" [email protected] < report.txt
it didn't send and it didn't give any error messages or something. Why it didn't work , i think it should be work ,there is no mistake in form. I use cent-os 5.7. I tried reinstall heirloom-mailx and it didnt fix. Beside, if you know any alternative way to send it, it will be help me too.
less /var/log/messages-- and learn a little more Unix stuff ;)