8------------------------ If it is not obvious the script above just sits in the forground and does the wget stuff every hour. I would use cron though... then there are no issues with closing sessions and nohup and other misc terminal stuff that daemons shouln't have to face. any particular reason why cron is to be avoided? Rob -- Rap it up for the common good Let us enlist the neighbourhood It's OK, I've overstood This is a wordy rappinghood. OK, bye. Tomtomclub, 1980. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <1123534322.116249.21060@g47g2000cwa.googlegroups.com> [htmlstate] => on_nl2br [postusername] => Rob [ip] => robshep@invalid [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> WGET Problem - Linux / Unix Administration

WGET Problem - Linux / Unix Administration

HI all: Can I just use WGET not cron schedule a download task every hour for one day for the same site download? Thanks for any idea....

  1. #1

    Default WGET Problem

    HI all:

    Can I just use WGET not cron schedule a download task every hour for
    one day for the same site download?

    Thanks for any idea.

    yezi Guest

  2. #2

    Default Re: WGET Problem

    yezi wrote: 

    off the top of my head.... try this....

    ---------------------8<------------------------

    #!/bin/sh

    # change this to your url
    YOUR_URL=http://www.example.com

    # change this to your output file
    OUTPUT_FILE=/tmp/output.html

    while true
    do
    wget -N -q -O $OUTPUT_FILE $URL
    sleep 3600
    done

    # end of hourly wget script.

    --------------------->8------------------------

    If it is not obvious the script above just sits in the forground and
    does the wget stuff every hour.

    I would use cron though... then there are no issues with closing sessions and
    nohup and other misc terminal stuff that daemons shouln't have to face.

    any particular reason why cron is to be avoided?

    Rob

    --
    Rap it up for the common good
    Let us enlist the neighbourhood
    It's OK, I've overstood
    This is a wordy rappinghood. OK, bye.

    Tomtomclub, 1980.
    Rob Guest

  3. #3

    Default Re: WGET Problem

    thanks

    yezi Guest

  4. #4

    Default Re: WGET Problem

    On 10 Aug 2005 08:12:52 -0700, yezi <com> wrote: 

    Please include a bit of what you're responding to, and who said it, so
    we know what and who you're answering please.

    Dave Guest

  5. #5

    Default Re: WGET Problem

    yezi wrote: 

    http://groups.google.com/googlegroups/posting_style.html

    Because most people reading newsgroups use something other than Google
    Groups.
    RedGrittyBrick Guest

Similar Threads

  1. wget in php?
    By trytertqwr in forum PHP Programming
    Replies: 2
    Last Post: March 7th, 09:50 AM
  2. Help installing wget
    By Jim Frazier in forum PERL Beginners
    Replies: 0
    Last Post: January 8th, 08:36 AM
  3. Lynx and wget - redirect problems for PHP scripts
    By Martin in forum PHP Development
    Replies: 3
    Last Post: September 11th, 04:15 PM
  4. restarting wget?
    By Michael D. Crawford in forum Debian
    Replies: 1
    Last Post: August 3rd, 12:40 PM
  5. rsync or wget?
    By David Fokkema in forum Debian
    Replies: 11
    Last Post: July 16th, 06:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139