Hello everybody,
I am trying to set up an update and reboot cron job for my home server.
I use crontab -e and I enter
* * * * * root (apt-get update && apt-get -y -d upgrade; /sbin/shutdown -r now) > /dev/null
but command doesn't look to work
I can see in /var/log/syslog this output
Jun 1 17:05:01 LinuxMint CRON[5072]: (root) CMD (charis (sudo apt-get update && sudo apt-get -y upgrade; /sbin/shutdown -r now) > /dev/null)
Jun 1 17:05:01 LinuxMint CRON[5071]: (CRON) info (No MTA installed, discarding output)
I don't think that MTA is a problem since command is running
Later I change the cron job
* * * * * charis (apt-get update && apt-get -y -d upgrade; /sbin/shutdown -r now) > /home/charis/cronout.txt
With same results and no cronout.txt file was produced.
Can somebody help? What is wrong?
I am trying to set up an update and reboot cron job for my home server.
I use crontab -e and I enter
* * * * * root (apt-get update && apt-get -y -d upgrade; /sbin/shutdown -r now) > /dev/null
but command doesn't look to work
I can see in /var/log/syslog this output
Jun 1 17:05:01 LinuxMint CRON[5072]: (root) CMD (charis (sudo apt-get update && sudo apt-get -y upgrade; /sbin/shutdown -r now) > /dev/null)
Jun 1 17:05:01 LinuxMint CRON[5071]: (CRON) info (No MTA installed, discarding output)
I don't think that MTA is a problem since command is running
Later I change the cron job
* * * * * charis (apt-get update && apt-get -y -d upgrade; /sbin/shutdown -r now) > /home/charis/cronout.txt
With same results and no cronout.txt file was produced.
Can somebody help? What is wrong?