Crontab Not Working with Bash on Ubuntu on Windows Crontab Not Working with Bash on Ubuntu on Windows windows windows

Crontab Not Working with Bash on Ubuntu on Windows


You need to add yourself to the crontab group.

usermod -a -G crontab (username)

Once you have done this, you also need to make sure that cron is running. Usually this is started with start cron however upstart does not work on WSL from what I can tell, but sudo cron does the job.

One caveat to this is that once you close all bash windows, cron will stop running even though your computer runs. However, as long as you have a bash window open and cron running, it will perform as expected.


To make sure cron is actually running you can type service cron status. If it isn't currently running then type service cron start and you should be good to go.


There is workaround mentioned on the github bug for this one, can't seem to find it now!

sudo crontab -u $USER -e