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.

auto restart

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

auto restart

Post by ReaLz »

could someone make a simple tcl script for me that will restart the bot every 24 hours?
«A fantastic spaghetti is a spaghetti that does not exist»
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Depending on what there this is to run, you have one fo two ways.

Run a cron job (see botchk and autobotchk).

Or

Code: Select all

bind time - "*" auto:restart
proc auto:restart {m h args} {
  if {($min == "01") && ($hour == "01")} {
    #only run at 1:01am. It's usualy a little quieter ont he system then
    restart
  }
}
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

Code: Select all

bind time - "*" auto:restart 
proc auto:restart {min hour args} {
if {($min == "01") && ($hour == "01")} {
putquick "PART #hellas :Restarting due to data flood."
restart 
}
if {($min == "01") && ($hour == "13")} {
putquick "PART #hellas :Restarting due to data flood."
restart 
}
}
it doesn't restart :cry:
«A fantastic spaghetti is a spaghetti that does not exist»
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What errors if any, does it give in the partyline?
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

oops sorry it works 8)
«A fantastic spaghetti is a spaghetti that does not exist»
Locked