Digital Marketing

Fixed Centos mailx sending body as attachment

Remove those '\r' by sed:
Example:
 ssh -t server.goyun.info 'df -h /; df -h /home' | sed "s/\r//g" | mailx -s "disk dize info" devops@goyun.info

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database