🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #72069

Re: could someone please explain to me what exactly hamster does?

#72069
From: Thomas LEMOINE
Date: Wed, 14 Feb 2001 17:46
41 lines
2566 bytes
Mark A. Odell wrote in message
<Xns904877B18ED59hj43hh34hhlLHKXDFH12@24.91.0.34>: 

> I don't have 3 years to learn an OS just to get newsfeed. I'll go
> write script I guess. Thanks.

There's a sample script in Hamster-fr help (I don't know if it's in the 
original help):
-=-=-=-=-
#!hs2
AtClear
# Calls getmails every hour from 6pm to 6am and every 15 mn from 6am to
# 6pm, from Monday to Friday
AtAdd( getmails, "00:00", "06:00", "1111100", 60, true )
AtAdd( getmails, "06:00", "18:00", "1111100", 15, true )
AtAdd( getmails, "18:00", "24:00", "1111100", 60, true )
# Calls getmails at 12pm on week-ends
AtAdd( getmails, "12:00", "",      "0000011" )
# Calls getnews at 3:15am and 6:45pm everyday
AtAdd( getnews,  "03:15" )
AtAdd( getnews,  "18:45" )
AtExecute
quit

sub getmails
   # ...
endsub

sub getnews
   # ...
endsub
-=-=-=-=-

You can then insert your retrieve commands in the subs getmails and 
getnews, and automatically load the script when Hamster starts by 
passing the .hsc file as a parameter to hamster.exe.

HTH
-- 
Thomas Lemoine
Technical Details
Message-ID: <Xns9048BF6B2A104.thomas@esperanza.wkaz.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail
References: <Xns9047EDEE050F2feeserfacehotmailcom@24.130.27.14> <96e85k$k6rcq$1@ID-73763.news.dfncis.de> <Xns90486B71AE985hj43hh34hhlLHKXDFH12@24.91.0.34> <Xns9048AA6765DA1.thomas@esperanza.wkaz.net> <Xns90487141C17C9hj43hh34hhlLHKXDFH12@24.91.0.34> <Xns9048B11FD7D21.thomas@esperanza.wkaz.net> <Xns904877B18ED59hj43hh34hhlLHKXDFH12@24.91.0.34>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9048BF6B2A104.thomas@esperanza.wkaz.net>
Subject: Re: could someone please explain to me what exactly hamster does?
Date: Wed, 14 Feb 2001 17:46:30 GMT
From: thomas@wkaz.net (Thomas LEMOINE)
References: <Xns9047EDEE050F2feeserfacehotmailcom@24.130.27.14> <96e85k$k6rcq$1@ID-73763.news.dfncis.de> <Xns90486B71AE985hj43hh34hhlLHKXDFH12@24.91.0.34> <Xns9048AA6765DA1.thomas@esperanza.wkaz.net> <Xns90487141C17C9hj43hh34hhlLHKXDFH12@24.91.0.34> <Xns9048B11FD7D21.thomas@esperanza.wkaz.net> <Xns904877B18ED59hj43hh34hhlLHKXDFH12@24.91.0.34>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Children of the sun
User-Agent: Xnews/4.01.30
Mail-Copies-To: never
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-No-Productlinks: yes
X-Bounce: Content-Type != text/plain
X-Binaries-To: binaries@wkaz.net
Lines: 40
NNTP-Posting-Host: 193.105.113.102
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp2.proxad.net 982172790 193.105.113.102 (Wed, 14 Feb 2001 18:46:30 CET)
NNTP-Posting-Date: Wed, 14 Feb 2001 18:46:30 CET