anacron script format
My distro (Kubuntu) organizes by default its cron jobs into folders, such as cron.daily, cron.weekly, etc. and those are scheduled in the crontab. I am trying to add a script to cron.weekly to update my distro that involves issuing three commands. I put them in an executable script file as follows:
apt-get dist-upgrade -y --purge
When this runs, though, anacron gives the the following error:
run-parts: failed to exec /etc/cron.weekly/dist-upgrade: Exec format error
run-parts: /etc/cron.weekly/dist-upgrade exited with return code 1
Any idea what the problem is? I know this is probably something simple.