Total Pageviews

Wednesday 9 May 2012

MUTT command not Found - Crontab


I have tested that MUTT is working when we are sending a test email directly using the mutt command but when we are trying to use MUTT  inside a script scheduled through crontab it is giving the below error:

mutt -s "This is a test email  --" dba.tyagisumit@gmail.com < /home/oracle/sumit_scripts/myfile.result


"MUTT command not Found"

Solution: If script is working properly when you ran it independently using  SH comand and not working through crontab , it seems this is due to permission issue. Crontab tab do not have execute permission.

Workaround: Find the directory where MUTT is installed using the command below:

              Which mutt
            -- /usr/local/bin/mutt


use complete path inside your script like shown below:


/usr/local/bin/mutt -s "This is a test email  --" dba.tyagisumit@gmail.com < /home/oracle/sumit_scripts/myfile.result




1 comment:


  1. Jadwal Tarung Ayam SV388 17 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Bandar Sabung Ayam - Minggu, 17 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete