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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using wget to download a file thoughts UNIX for Dummies Questions & Answers 4 02-20-2008 07:38 AM
How to script wget in bash? siegfried Shell Programming and Scripting 1 12-24-2007 11:57 PM
Automatic download of csv file using a shell script figaro Shell Programming and Scripting 1 01-13-2007 04:53 PM
May download a folder using wget command! ThrdF UNIX for Dummies Questions & Answers 1 02-15-2006 02:34 AM
Wget call in a Perl script rahulrathod UNIX for Advanced & Expert Users 1 12-28-2005 02:45 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2007
Registered User
 

Join Date: Feb 2007
Posts: 1
Script to download file using wget

Hi

I need a Shell script that will download a text file every second from a http server using wget.

Can anyone provide me any pointers or sample scripts that will help me go about this task ???

regards

techie
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-13-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Every second? Will the file be downloaded in a second? I downloaded a 653KB file from a local system and the command took about 6 seconds to complete.

Anyway, try this:
Code:
while true; do
   wget <rest of the options>
   sleep 1
done
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0