Re: automate download
[email protected] Tue, 14 Oct 2003 17:11:11 +0000
| Newsgroups | gmane.network.hamster |
|---|---|
| Organization | NVWO |
| Message-ID | <[email protected]> |
Hi Urbbs U. UUrps,
On Tue, 14 Oct 2003 14:59:38 -0000, you [Urbbs U. UUrps] wrote:
}My script :
}
}while (TRUE)
} HamNewsJobsClear
} HamNewsJobsPullDef( "news.aaaa.aaa,nntp" )
} HamNewsJobsStart( "news.aaaa.aaa,nntp" )
} sleep(3600000)
} print("wait another hour")
}endwhile
}
}somehow doesn't do anything, except the printing.
The following should work for you. You will have to amend it to
satisfy your needs regarding the number (and names) of the servers
that you want to pull from - if you are interested in pulling mail.
For news pulls only just use the PushPullNews routine, and the timing
that you want.
#!hs2
#
# Get mail from selected accounts all day, every day, every 5 minutes
# Get news from all accounts all day, every day, every 29 minutes
# Use more 'AtAdd' statements to schedule other jobs
AtClear
AtAdd (PullPushMail, "00:00", "24:00", "1111111", 5, true)
AtAdd (PullPushNews, "00:00", "24:00", "1111111", 29, true)
AtExecute
sub PullPushMail()
print( "Getting mail - Xxxxx..." )
HamFetchMail( "mail.Xxxxx.com", "pop3", "", "", "admin")
HamWaitIdle
print( "Getting mail - Yyy..." )
HamFetchMail( "pop.Yyy.net", "pop3", "", "", "admin")
HamWaitIdle
print( "Getting mail - Zz..." )
HamFetchMail( "mail.Zz.net", "pop3", "", "", "admin")
HamWaitIdle
print( "Sending mail - Aaaaa..." )
HamSendMail( "smtp.Aaaaa.net", "smtp" )
HamWaitIdle
endsub
sub PullPushNews()
print( "Getting news - all accounts..." )
HamNewsPull
HamWaitIdle
print( "Sending news..." )
HamNewsPost
HamWaitIdle
endsub
Best of luck...
--
Bill
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/W4wwlB/TM
---------------------------------------------------------------------~->
--
To post a message: [email protected]
To unsubscribe: [email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/