Forum Discussion
Thuchapon_92030
Jun 16, 2011Nimbostratus
Crontab issue
Now I found some problem about crontab, it don't send email for my expect.
******************************************
my crontab code is;
...
nitass
Jun 16, 2011Employee
have u tried using full path to sendmail? it works for me.
!/bin/bash
(printf "%s\n" "Subject: subject" "To: mail@mail.com" "Content-Type: application/ucs" \
"Content-Disposition: attachment; filename=$(date +%Y%m%d)hostname.ucs" \
"Content-Transfer-Encoding: base64" ""; base64 /var/ucs/hostname.ucs) | /usr/sbin/sendmail mail@mail.com
in addition, u know the default ucs directory is /var/local/ucs. u intend to use /var/ucs, don't u?
cheer!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects