|
|
Choosing A Webhost: |
Re: newbie doubts: msg#00016web.wget.general
Nandita Shenvi wrote: > I have not copied the whole script but just the last few lines.The variable > $all_links[3] has an URL: > http://bolinux39.europe.nokia.com/database2/MIDI100/GS001/01FINALC.MID. > the link follows a file, which I require. > I remove the http:// before calling the wget, but i still get an error > message: > > --13:56:24-- > http://%20bolinux39.europe.nokia.com/database2/MIDI100/GS001/01FINALC.MID%0A > => `wgetcheck' $all_links[3] needs to be cleaned up. It contains as trailing "\n" and there is a space between "http://" and "bolinux39" that should not be there. The "\n" is easily addressed by: chomp @all_links; You should look at your script to determine how the space got there. You can get rid of all spaces by: $all_links[3] =~ s/ //g; but that may not be what you want. You're better off figuring out how the unwanted space got there in the first place and making sure it doesn't. Tony
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | newbie doubts, Nandita Shenvi |
|---|---|
| Next by Date: | Get a segmentation fault on this link & command, wget |
| Previous by Thread: | newbie doubts, Nandita Shenvi |
| Next by Thread: | Get a segmentation fault on this link & command, wget |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |