Networking Forums

Networking Forums > Computer Networking > Linux Networking > ./bashpodder.shell [..] No such file or directory

Reply
Thread Tools Display Modes

./bashpodder.shell [..] No such file or directory

 
 
hawat.thufir@gmail.com
Guest
Posts: n/a

 
      03-14-2006, 11:20 AM
what does it mean that there's no such file or directory as the error
gives? I'm listening to the podcast which bashpodder downloaded, but I
don't understand the error:




[thufir@localhost bashpodder]$
[thufir@localhost bashpodder]$ pwd
/home/thufir/bashpodder
[thufir@localhost bashpodder]$ ll
total 44
drwxrwxr-x 2 thufir thufir 4096 Mar 14 07:00 2006-03-14
-rwxrwxr-x 1 thufir thufir 879 Mar 14 06:53 bashpodder.shell
-rw-rw-r-- 1 thufir thufir 44 Mar 14 07:00 bp.conf
-rw-rw-r-- 1 thufir thufir 316 Mar 14 06:55 parse_enclosure.xsl
-rw-rw-r-- 1 thufir thufir 0 Mar 14 06:59 podcast.log
-rw-rw-r-- 1 thufir thufir 60 Mar 14 07:16 temp.log
[thufir@localhost bashpodder]$ ./bashpodder.shell
../bashpodder.shell: line 15:
http://lottalinuxlinks.com/podcast/rss.xml: No such file or directory
[thufir@localhost bashpodder]$ cat bashpodder.shell -n
1 # datadir is the directory you want podcasts saved to:
2 datadir=$(date +%Y-%m-%d)
3
4 # create datadir if necessary:
5 mkdir -p $datadir
6
7 # Delete any temp file:
8 rm -f temp.log
9
10 # Read the bp.conf file and wget any url not already in the
podcast.log file:
11 while read podcast
12 do
13 file=$(xsltproc parse_enclosure.xsl $podcast 2>
/dev/null || wget -q
14 $podcast -O - | tr '\r' '\n' | tr \' \" | sed -n
's/.*url="\([^"]*\)".*/\1/p')
15 for url in $file
16 do
17 echo $url >> temp.log
18 if ! grep "$url" podcast.log > /dev/null
19 then
20 wget -t 10 -U BashPodder -c -q -O
$datadir/$(echo "$url" |
21 awk -F'/' {'print $NF'} | awk -F'?' {'print $1'}) "$url"
22 fi
23 done
24 done < bp.conf
25 # Move dynamically created log file to permanent log file:
26 cat podcast.log >> temp.log
27 sort temp.log | uniq > podcast.log
28 rm temp.log
29 # Create an m3u playlist:
30 ls $datadir | grep -v m3u > $datadir/podcast.m3u
31
[thufir@localhost bashpodder]$ cat bp.conf -n
1 http://lottalinuxlinks.com/podcast/rss.xml
2
[thufir@localhost bashpodder]$ date
Tue Mar 14 07:17:28 EST 2006
[thufir@localhost bashpodder]$



thanks,

Thufir

 
Reply With Quote
 
 
 
 
hawat.thufir@gmail.com
Guest
Posts: n/a

 
      03-15-2006, 11:07 AM
(E-Mail Removed) wrote:
> what does it mean that there's no such file or directory as the error
> gives? I'm listening to the podcast which bashpodder downloaded, but I
> don't understand the error:

...

It was due a copy/paste error of the script source, a long line was
wrapped (I should've saved the file instead of copy/paste). However,
my NPR podcasts don't all seem to be downloading, but that might be a
busy server or something.


-Thufir

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH cannot login , remote system say /bin/bash: no such file or directory shashi Linux Networking 5 02-14-2011 03:41 PM
File Copy - Directory of 150+ Gb. Nick Windows Networking 1 04-18-2007 03:44 AM
minicom: cannot open /dev/usb/tts/0: No such file or directory TCMa Linux Networking 8 09-30-2004 03:55 AM
Postfix: fatal: open database .db: No such file or directory Doug Laidlaw Linux Networking 0 07-05-2004 05:31 AM
copy file and directory with permission Bit Twister Linux Networking 2 04-16-2004 04:58 PM



1 2 3 4 5 6 7 8 9 10 11