I'm kinda new in Linux and I've just learned about scheduling tasks with cron. I have this small shell script that I've been using manually till now:
sudo apt-get check && sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get autoclean
Now I want to schedule it using cron so I won't manually do it every day, but it seems I can not do so. I suppose it is because it requires my sudo password in order to proceed? Is there any way I can make this work without auto-accepting the upgrades and so on?