al een tijdje ben ik bezig met CRON en crontab, in het begin liep
het voor geen meter maar nu gaat het stapje voor stapje beter.
heb een eenvoudig werkend crontabe file .
waarin ik een een mailbericht naar Gmail wil sturen (zie onderste 4 regels van
onderstaande listing.
de vraag is dus hoe maak ik die connectie met Gmail
(via SMPT ? etc).
wie helpt mij
cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
Active: active (running) since wo 2017-06-28 07:37:32 CEST; 3h 30min ago
Docs: man:cron(8)
Main PID: 942 (cron)
CGroup: /system.slice/cron.service
└─942 /usr/sbin/cron -f
jun 28 11:07:01 theo-HP-Pavilion-dv7-Notebook-PC cron[942]: sendmail: Cannot open mail:25
jun 28 11:07:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[16967]: (theo) MAIL (mailed 38 bytes of output but got status 0x0001 from MTA
)
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17024]: pam_unix(cron:session): session opened for user theo by (uid=0)
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17025]: (theo) CMD (/bin/date >> /tmp/cron_output # JOB_ID_1)
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17024]: pam_unix(cron:session): session closed for user theo
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17023]: pam_unix(cron:session): session opened for user theo by (uid=0)
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17027]: (theo) CMD (echo 'test cron job to execute every minute')
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC sSMTP[17028]: Unable to locate mail
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC cron[942]: sendmail: Cannot open mail:25
jun 28 11:08:01 theo-HP-Pavilion-dv7-Notebook-PC CRON[17023]: (theo) MAIL (mailed 38 bytes of output but got status 0x0001 from MTA
)