This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need some help w/ exec and timeouts..

Old posts that have not been replied to for several years.
Locked
s
soroh

Need some help w/ exec and timeouts..

Post by soroh »

Hey everyone, I'm the author of the 'pisg-0.5.tcl' script, and I was wonderring if there is anything else I can use aside from exec, as I had someone report to me that if the log file is to large, the bot will timeout since it's generating the stats .. and when it's generating you cannot dcc the bot, etc, since it has to finish this subprocess.

I guess what I'm saying is, a way to do this in the background?

TIA.
-soroh
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

use |open or the bgexec module

btw: better start pisg via cron
s
soroh

Post by soroh »

Code: Select all

bind time - "00 00 * * *" pisg_stats
bind time - "00 06 * * *" pisg_stats
bind time - "00 12 * * *" pisg_stats
bind time - "00 18 * * *" pisg_stats
What's wrong with doing it that way? (unless you didn't look at the code and are making pre-emptive suggestions :p)
s
soroh

Post by soroh »

GodOfSuicide wrote:use |open or the bgexec module

btw: better start pisg via cron
Hm..
I got this when using |open:
[05:50] Tcl error [pisg_manstats]: expected integer but got "/home/soroh/pisg/pisg.cfg"
s
soroh

Post by soroh »

Ah, I did a bit more searching and noticed you actually started a similar thread about non IO blocking exec replacement .. what did you come up with?
Locked