I am new to linux and I am trying to automate my update/upgrade script for my raspberry pi.
Right now it is set to do it every 1 minute, so I can see whether it logs what it does. Later on I will be making it so that it would run once every X time. However it does not log anything nor does it create the out.log file.

The steps I take:

```
crontab -e
#I used the following line
01 * * * * root apt-get update -y && apt-get upgrade -y > /home/cronbin/out.log

```

I then save it:

```
CTRL + X
Y
ENTER

```

I did read about unattended upgrades and this post ([apt-get upgrade not installing upgrades through crontab job](https://unix.stackexchange.com/questions/314769/apt-get-upgrade-not-installing-upgrades-through-crontab-job)) was also an interesting read, however I am trying to learn/work with linux and therefore decided to still ask this question in the hopes of finding out what I am doing wrong and how to make it work.