LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02: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, 06:43 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
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, 01: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, 10: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, 07:53 AM   #5
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 10:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration