LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2012, 10:49 AM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
wget: scheme missing?? (when run from bash script only)


hello.
part of a bash script i have needs to downoad a set of xml files from a list to a folder. i have the sites in a separate file, with one URL on each line. when the script runs, wget downloads the first file fine, but each one after that gives me the error "scheme missing" I've searched both this site and the internet forever and have found nothing useful. the command works perfectly if I run it from a terminal. the command to download is:

wget -S -N --directory-prefix=/var/podcast/feeds/ --input-file=/var/podcast/feedlist

contents of /var/podcast/feedlist:

http://feeds.twit.tv/mbw_video_large
http://feeds.twit.tv/fr_video_large
http://feeds.twit.tv/ww_video_large
http://feeds.twit.tv/sn_video_large
http://feeds.twit.tv/twig_video_large
http://feeds.twit.tv/ipad_video_large
http://feeds.twit.tv/tnt_video_large
http://feeds.twit.tv/tri_video_large
http://feeds.twit.tv/fr_video_large
http://feeds.twit.tv/fc_video_large
http://feeds.twit.tv/nsfw_video_large
http://feeds.twit.tv/twich_video_large
http://feeds.twit.tv/specials_video_large

what am I doing wrong?
 
Old 01-10-2012, 04:58 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
"scheme missing" sounds like some interpretation error and that is not what Wget should do. Maybe it has to do with a "convert links" default setting? Anyway, with a ~/.wgetrc that includes:
Code:
dir_prefix = /var/podcast/feeds
dirstruct = off
robots = off
logfile = /var/podcast/feeds.log
input = /var/podcast/feeds.list
convert_links = off
and running 'wget -N' I get no XML error messages whatsoever running wget-1.11(.4-2.el5_4.1). You could clean out your ~/.wgetrc and strace yours to try and understand but as you only want to D/L it cleanly you could also use any other D/L tool like curl if available.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Auto Download Script for Podcasts available (wget used) O(V)eGA_l2el) Linux - General 1 01-04-2012 08:15 PM
[SOLVED] Run multiple bash and php scripts from a bash script charu Programming 5 07-26-2011 02:40 AM
Wget Scheme missing tofumon Linux - Software 4 03-24-2011 10:54 AM
My BASH script work perfect when i run it manualy, but not when it run in the crontab roqarg Linux - Newbie 30 05-06-2010 01:37 PM
How to create a bash script to wait for wget to finish and then continue danlee Linux - General 14 05-30-2008 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration