I\'ve spent two days trying to understand why I can not get cron to work on my Ubuntu EC2 instance. I\'ve read the documentation. Can anyone help? All I want is to get a wor
Cron can be run in Amazon-based linux server just like in any other linux server.
crontab -e
on the command line.* * * * * /usr/bin/uptime > /tmp/uptime
cat /tmp/uptime
).uptime
command on the command line.The scenario above worked successfully on a server with the Amazon Linux O/S installed, but it should work on other linux boxes as well. This modifies the crontab of the current user, without touching the system's crontabs and doesn't require the user inside the crontab entry, since you are running things under your own user. Easier, and safer!