I have a Python script which simply writes some text and saves it to a file
filename = '/home/user/testHello.txt'
openfile = open(filename,"w")
print("Hello CRON", file = openfile)
if __name__ == "__main__":
SHELL = /bin/bash
PATH = /sbin:/bin:/usr/sbin:/usr/bin
MAILTO = root
HOME = /
1 * * * * /home/user/tester.py
@reboot /usr/bin/python3 /home/user/tester.py
ps aux | grep crond
user 2259 0.0 0.0. 9436 948 pts/0 S+ 23:39 0:00 grep --color=auto crond
sudo crontab -e
Mark Roberts pointed out a few things I'd done wrong.
Namely, the spaces here
MAIL = root HOME = /
Get rid of those spaces..
Next, having Cron configuration fixed to email every minute.. instead of what I had :
*/1 * * * * /home/user/tester.py
Seems to me Lubuntu doesn't support the @Reboot Cron syntax.