🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #310

cron or not ?

#310
From: Anonymous
Date: Wed, 27 May 2020 12:03
9 lines
1359 bytes
>That sounds likely. Running from cron.php is no problem, so no real reason to change it.

There would be one reason, which is that running from cron, you can only run the script blindly, regardless if there messages to import or not. And in case of many messages, you can only import one per minute (limitation of cron).
Both is fine for now, but actually you can also use a browser to call the script locally, and this could be done from another script. I just have to figure out how to make curl disregard the proxy options of the system and send the request directly, than I can implement that directly in my import script.
Could use wget as well, but prefer not to use any exec if I don't have to.

cheers

trw
Technical Details
Message-ID: <n.239.3xbw1r@anon.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
References: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>

Show Full Headers
Complete Article Headers
Message-ID: <n.239.3xbw1r@anon.com>
Subject: cron or not ?
Date: Wed, 27 May 2020 05:03:12 -0700
From: Anonymous <poster@anon.com>
References: <7b6448e9ac3e8f40f5ff6b8fa9b433b6@def4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes
Organization: i2pn2 (i2pn.org)
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
 logging-data="6378"; mail-complaints-to="usenet@i2pn2.org"