Slimelite BBS

AntiCron.lha

Back to rexx

Deny program execution at certain times o

Size
4.9K (5,028 bytes)
Added
2026-11-20 17:29
Downloads
2
Long Description
This program enables a simple "cron" type mechanism to be used with your programs to prevent them from being run at certain times of the day/week. I made it solely for my internet applications, such as YAM, Miami and AmIRC etc. It is very handy if you use directory tools such as Dopus, DiskMaster or DirWork, but it is not intended to be a failsafe denial service. It is only to stop others, such as your family members, flatmates (or girlfriend!!) etc from reading your mail or running up your phone bill while you're at work etc. The programs can easily be run manually to bypass AntiCron, but this was designed only to make it "look" as though there is an obvious problem by means of deception. With the default setting, it pops up an identical Miami requester, saying "Your modem is not responding to a reset." Most people will stop fiddling with the software if they think it is a hardware problem (Girlfriend!), or if they have no idea what a modem is anyway! (Parents!) ;-) Installation ------------ Simply copy AntiCron.rexx and AntiCron.cfg to wherever you want, but AntiCron.rexx must be edited to point to the config file. Default is in S:AntiCron.cfg. Usage and Configuration ----------------------- Usage will be transparent once it is all configured. The configuration file is simple to understand, but the order the config lines appear in MUST be left as specified below, and MUST be preceded with a * and a space. The order of the configuration lines is below, with all comment lines stripped: * Monday 17:40 21:30 * Tuesday 00:00 00:39 14:45 24:00 * Wednesday 00:00 00:39 14:45 24:00 * Thursday 00:00 00:39 14:45 24:00 * Friday 00:00 00:39 14:45 24:00 * Saturday 00:00 00:39 * Sunday * MiamiOnline MiamiGui * MiamiOnline C:Miami.Online * MiamiGui C:MiamiShow etc etc..... Descriptions: DAYS : The first 7 lines must be the days of the week. The next sets of two words after the day (optional) must be the start and finish times of a Denial Range. You may use spaces to move the ranges accross so that they are easy to read etc. The time must be in 24 hour format only. eg 17:37 CLIENTS : The next single line is the list of arguments or clients that will be denied execution if a denial match is found. ARGUMENTS : The rest of the config lines are the individual Client arguments, and the commands to execute when they are called. They must correspond to the names given in the CLIENTS line. If you no longer want to deny a programs execution, simply remove the appropriate name from the CLIENT line only. You do not need to remove the lines from the ARGUMENTS area. EXAMPLE: You have a button on Dopus that does "Run >nil: MiamiOnlineNetCommand" Change this line to "Run >nil: RX AntiCron.rexx MiamiOnline" Then edit the config file after the days section (CLIENTS) and add the word "MiamiOnline" to the list. Now, go to the config area after this line and add the following line: MiamiOnline Run >nil: MiamiOnlineNetCommand This does the same as your original button did, but checks AntiCron.cfg to see if execution is allowed by reading the Denial Ranges for the corresponding day. Now, say the time is Wednesday, 16:00 hours, or 4:00 pm in 12 hour format. The script looks for the corresponding day, Wednesday, and checks all the sets of ranges it finds for the Wednesday line. * Wednesday 00:00 00:39 14:45 24:00 No Match Match!! The current time, 16:00, falls between the second range of 14:45 and 24:00, so AntiCron will NOT allow the program to be launched through it, even tho the first range does not match and allows it. The Denial Ranges, therefore, are the times in which the clients are NOT allowed to be run. You may specify as many ranges for a day as you wish, but make sure there is both a start time AND a finish time
SHA-256
f4aa539bf644c14b469b70fdb6870808d25fbb9a0d1ce51abf2668da118433d5