This is a bash script running in loop reading the videos urls from the file urls and downloading with youtube-dl and then removing the downloaded video url from the file and starting to download the next video, when i run this code get this error:
Quote:
$ ./ydown.sh
./ydown.sh: line 4: /usr/bin/youtube-dl -c -v: No such file or directory
./ydown.sh: line 4: /usr/bin/youtube-dl -c -v: No such file or directory
|
Thsi is the ydown.sh:
Code:
#!/bin/bash
while read line
do
"/usr/bin/youtube-dl -c -v" $line
sed -i "\#$line#d" urls
done < urls
youtube-dl is installed in the /usr/bin:
Quote:
$ whereis youtube-dl
youtube-dl: /usr/bin/youtube-dl /usr/share/man/man1/youtube-dl.1.gz
|