DALLASCAO.COM

Site of Cao Shouguang, English to Chinese translator

Script works under command line but not in crontab?

Add the following lines to crontab and then it will work:

SHELL=/bin/bash
PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Leave a Comment