๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #135651

Re: [Hamster] Help plse

#135651
From: Alan Ford
Date: Fri, 17 Oct 2003 20:49
44 lines
2289 bytes
Di /venerdรฌ, 17 ottobre 2003/, *Cornel Stupak* ha scritto:

> I have a problem with the help file, probably needs reloading.
> Here is my question:
> How can I schedule a "newsjob" -threads at a specific interval? Say 
> every 7 minutes, without doing so manually (Online -> ALL-NNTP 
> Servers).
> Is there a Hamster.ini setting I need to add?

No, you must write a script...

An example:

##### AUTO_NEWS

#!hs2
#!load hamster.hsm
   
    ### schedule
    AtAdd (Check, "00:00", "23:59", "1111111", 7, true)
    AtExecute
    quit
     
    ### subroutine
    Sub Check
      If (RasIsConnected)  
        HamMessage (3,0)
        HamNewsJobsClear
        HamNewsJobsPostDef
        HamNewsJobsPullDef
        HamNewsJobsStart
        HamMessage (3,1)
        HamWaitIdle
      EndIf
    EndSub
quit

##### END

Bye.

-- 
 /   _ _ | Xnews in italiano e Guida ai Menu
( (/( (/ | http://digilander.libero.it/xnews
Technical Details
Message-ID: <Xns9417E830E8EFFlucatinit@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!host218-30.pool80116.interbusiness.IT!not-for-mail
References: <Xns9417A6E5A7835Hamster@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9417E830E8EFFlucatinit@127.0.0.1>
Subject: Re: [Hamster] Help plse
Date: Fri, 17 Oct 2003 22:49:31 +0200
From: Alan Ford <xnews@libero.it>
References: <Xns9417A6E5A7835Hamster@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.freenet.de!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!host218-30.pool80116.interbusiness.IT!not-for-mail
Newsgroups: news.software.readers
Organization: n/a
Lines: 44
NNTP-Posting-Host: host218-30.pool80116.interbusiness.it (80.116.30.218)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1066423653 27092635 80.116.30.218 (16 [176488])
User-Agent: Xnews/06.01.10 Mime-proxy/1.3.c.0 (Win32) Hamster/2.0.2.2
X-face: 7G>Ev/z;
 ?W7#ju=,>d_lVb?j-<uparAyK#-Yuyn7e%Ivfsx.bC05/iEGkosa6,m3et}&E1!AU2@Emf4`z%Hu=m7XyL`1H`*uIe|FVCiW)?[OLCL%{9[=h4m|.<:F}RGPXtOlqm![9c_pEDQA;
 AJ; M1,d]>`t*'H_X1Zz>mu&Tm,oeEH.U2%4
X-Lyrics: one two three four - s'cusi dove il bar - got to get on