This is my sh-file: http://paste.ubuntu.com/5816543/, that I use this to download youtube files in a specific period per day. when I drag the file (y.sh) into the terminal and press return key, it starts to download. but when I use the below command in crontab -e
, Nothing happens!
00 21 * * * /home/deroot/links4dl/y.sh
Torify: wrapper for torsocks or tsocks and tor -> man torify
youtube-dl: download videos from youtube.com or other video platforms -> man youtube-dl
/dev/null 2>&1
$PATH
variable as your interactive bash session.00 21 * * * /home/deroot/links4dl/y.sh > /home/deroot/ScriptLog
00 21 * * * /home/deroot/links4dl/y.sh > /home/deroot/ScriptLog 2>&1