I have done a lot of trial and error with a ton of google searching, even tried adding the absolutle path value and doing this as root, I want to download a youtube playlist. It works stand alone as a bash script via the terminal but I would like this to run in the background
Terminal Commands
#!/bin/bash
youtube-dl --download-archive downloaded.txt --no-post-overwrites -ciwx --ignore-errors --
extract-audio --yes-playlist --audio-format mp3 -o "/mnt/C6E0EE36E0EE2BFD/to sort/youtube-
dl/%(title)s.%(ext)s" 'https://www.youtube.com/watch?v=o-
EQb0WSQMM&list=PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb'
crontab
PATH=/bin:/usr/bin:/my/path/bin
06 17 * * * /usr/local/bin/youtube-dl --download-archive downloaded.txt --no-
post-overwrites -ciwx --ignore-errors --extract-audio --yes-playlist --audio-format mp3 -o
"/mnt/C6E0EE36E0EE2BFD/to sort/youtube-dl/%(title)s.%(ext)s" 'https://www.youtube.com/watch?
v=o-EQb0WSQMM&list=PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb'
edit: Output from terminal when scheduling with crontab, works if I execute the script through the file manager
[youtube:playlist] PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb: Downloading
webpage
[download] Downloading playlist: PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb
[youtube:playlist] playlist PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb:
Downloading 0 videos
[download] Finished downloading playlist:
PLBttCtrPECg7LkJ7YnirXY72UWfNn-dIb
Driving me a bit mental, thanks for your help