I am having trouble figuring out how to set up my first cron job. I simply want to run this command once every week:
dpkg -l > ~/Dropbox/installed_packages
/etc/crontab file contains the line
7 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
So I need to place my command somewhere in the directory /etc/cron.weekly - but in which file?
/etc/cron.weekly currently contains the following files:
apt-xapian-index man-db 0anacron cvs