LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-16-2005, 10:55 AM   #1
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux 3.1/Busybox. Fedora 19, Raspberry Pi
Posts: 94

Rep: Reputation: 15
Given a URL how to grab a copy of the file from a command prompt ?


Iím looking for a command line type program that I can give a (HTTP URL to and itíll go off, retrieve the page for me, and either let me save it in a file I specified with another argument, or let me save the output with pipes etc.

The page I want is plain text, I donít need any fancy formatting or anything. I just want to ďmirrorĒ a copy of a plain text file.

I know a simple PERL program can do this, but for reasons best known to my ISP, they have removed these library features from PERL.

The remote system Iím retrieving from does not support FTP access.

Anyone got any brilliant suggestions ?
 
Old 07-16-2005, 11:04 AM   #2
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 15
wget

if you can view the page in a browser you can download it with wget.
there are many options (man wget) and this is a very powerful tool (at least for me)

for downloading a single (txt) page:
Code:
wget http://some.server.com/md/text/file.txt
hope this helps

[EDIT: disabled url parsing]

Last edited by mhallbiai; 07-16-2005 at 11:05 AM.
 
Old 07-16-2005, 11:46 AM   #3
Mike Davies
Member
 
Registered: Jul 2004
Distribution: Custom Linux 3.1/Busybox. Fedora 19, Raspberry Pi
Posts: 94

Original Poster
Rep: Reputation: 15
Many thanks. I knew there must be something. Seems to work OK

Thanks again.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Filename on the end of a (Download) URL hitman_et Programming 3 12-02-2005 04:52 AM
How do you copy and paste a file from a command prompt? thenewguy05 Linux - Newbie 6 07-13-2004 03:41 PM
copy command with out prompt imsajjadali Red Hat 4 05-30-2004 11:42 PM
Grab prompt while booting Redhat Linux shehazab Linux - Software 0 10-26-2003 11:44 PM
How to play a wav file from the Command Prompt arraman Linux - General 1 08-02-2001 07:13 AM


All times are GMT -5. The time now is 11:14 AM.

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