The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
accessing a file on internet chetanpc Shell Programming and Scripting 1 03-25-2008 03:07 PM
Downloading a csv file automatically figaro Shell Programming and Scripting 2 03-19-2008 05:36 PM
Downloading Excel File matrixmadhan UNIX for Dummies Questions & Answers 4 01-16-2008 01:14 PM
Downloading OpenSuSE 10.2 DVD ISO with Internet Explorer dhinge Linux 1 12-13-2006 03:09 AM
downloading through ftp moxxx68 UNIX for Advanced & Expert Users 6 12-05-2004 05:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-25-2008
chetanpc chetanpc is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 3
Downloading file from internet

Hi,

I need to write a script to download a file (say http: //www.mysite.com/myfile.txt) from the internet (please note that the file is on http not ftp).
Please let me know if there is any method other than wget.

Thanks,
Chetan
  #2 (permalink)  
Old 03-25-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
And why exactly would you not like to use wget?

libwww-perl GET and curl come to mind but they are less likely to be installed than wget.
  #3 (permalink)  
Old 03-25-2008
chetanpc chetanpc is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 3
The administrators of the unix server are not willing to install wget or any other tool on the machine, so i am looking at using the existing tools.
  #4 (permalink)  
Old 03-25-2008
pupp's Avatar
pupp pupp is offline Forum Staff  
cap_10hdx 1
  
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 559
can you telnet to the http box?
  #5 (permalink)  
Old 03-25-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
... to port 80? (^:

telnet is a bitch to script, but if you have nc (netcat) you're all set (given time and predisposition to reinvent all the possibly necessary trainer wheels for gzip encoding, HTTP chunking, cookies, and what not).
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0