I would like to run a job, which will execute the below command every week.
$ dpkg --get-selections > /home/me/package_list.log
So I tried the following.
$ sudo crontab -e
Added entry like this,
0 2 * * * dpkg --get-selections > /home/me/package_list.log
But it doesnt work. What am I missing and what can I do to fix this?
Thank You.
/etc/cron.denyand/or/etc/cron.allow. Also, a minor point, but the crontab line as it currently appears will run every day, not just once a week. – Steven Monday Dec 7 '10 at 2:20