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?