LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2008, 11:07 PM   #1
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Rep: Reputation: 15
Exclamation wget command


i am running a script which have the command wget.the script jobs is to download file. what if when the script run,the downloading process is running, and then the cable is unplugged and the download is interrupted.is there a way that i can use to resume the download again?
 
Old 07-16-2008, 11:23 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
wget -c (+ all other options + URL)
 
Old 07-16-2008, 11:36 PM   #3
nawuza
Member
 
Registered: Jan 2007
Location: High Castle
Distribution: FC8
Posts: 66

Original Poster
Rep: Reputation: 15
ok..

this is the script..for testing the download interupted.

Code:
#!/bin/sh
etc/init.d/httpd stop

wget -c http://localhost/backup/test.tgz

etc/init.d/httpd start
can anybody give me an idea on makng sure that the download is complete or if not complete,the download willtry again until certain time its stop.
 
Old 07-16-2008, 11:37 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,601
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,
Quote:
Originally Posted by nawuza View Post
i am running a script which have the command wget.the script jobs is to download file. what if when the script run,the downloading process is running, and then the cable is unplugged and the download is interrupted.is there a way that i can use to resume the download again?
You've been given the answer already.

If in the future you need to now smething about a 'command' then do a 'man command' from the cli to get the answer. Man is your friend!

If you want a online reference then look at 'LINUX MAN PAGES ONLINE'.
 
  


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
Wget command help divyahm Linux - Software 12 09-04-2007 02:25 PM
Need help with wget command learners Linux - Software 0 09-04-2007 08:28 AM
wget command help munkeevegetable Linux - Newbie 8 11-03-2004 07:37 PM
wget command juanb Linux - General 5 12-11-2003 04:23 PM
wget command glock19 Linux - General 0 11-29-2001 03:20 PM


All times are GMT -5. The time now is 09:37 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration