I have a script which runs perfectly in terminal, but when I tried to run that in crontab every "5 minutes", I got following errors in /var/log/messages:
crond: sendmail: fatal: parameter inet_interface: no local interface found for ::1
*/5 * * * * /bin/python /scripts/python/account.py >> /script/python/account.log
Note: In my script I am running an aws command (Which might be the reason):
aws cloudwatch put-metric-data <----options and parameters---->
If anyone could shed some light as to why I am getting this error and to what I can do to overcome this, that would be a great help.
Only command that is trying to send information out of system is the aws one, I am using following code to run that command:
os.system("aws cloudwatch put-metric-data <----options and parameters---->")