2
1
I want to write a cron job that authenticates for a certain mail account. As there are multiple ways in giving the script those credentails: config file, hardcoded in script, arguments in cronjob call,.. Where do I put those credentials?
(Currently I would favor as giving them the script via arguments as the script is then independent. But is that secure?)
Thanks for your thoughts.
4Don't put them in the crontab itself; all
cron
jobs are logged in syslog and can sometimes be sent by email. – user1686 – 2012-05-03T11:17:12.240@grawity: Ahh, yes as you have written this I remember some weekly cronjob mails. – math – 2012-05-03T11:19:44.207