LinuxQuestions.org
Help answer threads with 0 replies.
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 04-27-2008, 01:31 PM   #1
gvp87
Member
 
Registered: Mar 2007
Location: Boston
Distribution: Ubuntu Gutsy
Posts: 50

Rep: Reputation: 15
URL download script


Some time ago, I Googling something random, and I remember reading a short how-to on writing a short script(less than 5 lines) that downloads a URL(it didn't use wget or any other similar application).

I can't seem to find that how-to.

At the time it wasnt important at all, but now it would come in pretty handy.

does anyone have any idea what I'm talking about????? haha

giuseppe
 
Old 04-27-2008, 05:43 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
afraid not with that little information. wget (or the similar) is what comes to my mind.

Do you have any recollection of how it went about doing it? Any detail on any of the lines of script?
 
Old 04-28-2008, 12:02 AM   #3
gvp87
Member
 
Registered: Mar 2007
Location: Boston
Distribution: Ubuntu Gutsy
Posts: 50

Original Poster
Rep: Reputation: 15
yea, i think it was something like :

/dev/something/something/"http://www.URL.com"


it was either /dev or /proc
 
Old 04-28-2008, 09:59 PM   #4
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
I doubt there is anything in these two directories that are capable of that. /dev contains special device files and /proc is an interface to the kerenel. What is wrong with using wget if it gets the job done? If you really need to write a script then try Perl or Python. I'm not sure if you can write a shell script that does this without using something like wget. I might be wrong. If I am I'd like to know how.
 
Old 04-29-2008, 06:53 AM   #5
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Quote:
Originally Posted by fancylad View Post
I'm not sure if you can write a shell script that does this without using something like wget. I might be wrong. If I am I'd like to know how.
I'm with you on this one fancylad. wget, curl, lftp, i've even used nc to pull a file from the web before but i've never seen anything come from /proc or /dev...


There's generally a binary somewhere that does the leg-work for you on retrieving the page(s) and file(s) for your script to further handle and manipulate.
 
  


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
script to modify url gazman1 Programming 2 06-14-2006 09:17 AM
Resolving URL script irfanhab Programming 1 12-08-2005 07:38 AM
Grab Filename on the end of a (Download) URL hitman_et Programming 3 12-02-2005 04:52 AM
Use PHP URL processor script with Apache remi Linux - Networking 0 07-18-2004 01:44 PM
XMMS download URLs down. Any url to download it? astitva Linux - Newbie 3 12-28-2003 05:16 AM

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

All times are GMT -5. The time now is 02:22 AM.

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