• Python script

    From Rick Smith@21:1/190 to All on Mon Apr 6 14:30:46 2020
    Greetings All!

    Can I have mystic events or some other method to run a python script every hour
    or so?


    Regards,

    Nitro


    ----

    ... BBSing's like sex, except for not wanting to get off.
    --- GoldED+/W32-MSVC 1.1.5-b20170303
    * Origin: ----> Abacus BBS (bbs.abon.us:2323) <---- (21:1/190)
  • From volker@21:2/168 to Rick Smith on Tue Apr 7 00:56:33 2020
    Can I have mystic events or some other method to run a python script
    every hour or so?

    Events can run any executable that the user running Mystic has (execute)
    access to. Can be Python, Shell, an executable, whatever you want.

    However, if the program isn't intrinsically related to Mystic / your BBS I would rather run it via the scheduling mechanism of your OS, crontab on
    unixes (and this includes OSX) and the scheduler in Windows.

    Volker
    http, telnet, ssh://conxtor.bbs.nz, http://bbs.conxtor.com
    fsxNet and DOVE-Net

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Conxtor BBS (21:2/168)
  • From Nitro@21:1/190 to volker on Tue Apr 7 11:47:12 2020
    However, if the program isn't intrinsically related to Mystic / your BBS
    I would rather run it via the scheduling mechanism of your OS, crontab on unixes (and this includes OSX) and the scheduler in Windows.

    What I am trying to run is the corona tracker from phenome I had an hourly event in events running (or trying to run) c:\mystic\themes\default\scripts\ctracker_mystic.py didnt seem to be working tho...

    Regards,

    Nitro

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/64)
    * Origin: Abacus BBS (21:1/190)
  • From Alpha@21:4/158 to Nitro on Tue Apr 7 21:40:42 2020
    What I am trying to run is the corona tracker from phenome I had an
    hourly event in events running (or trying to run) c:\mystic\themes\default\scripts\ctracker_mystic.py didnt seem to be working tho...

    You need to add the "python" command before the script. E.g.

    python C:\[path]

    I tested that script out, looks great--but couldn't figure out how to change the font back after it ran -- the docs were missing that part :)

    --- Mystic BBS v1.12 A46 2020/03/29 (Linux/64)
    * Origin: Card & Claw BBS (21:4/158)
  • From Nitro@21:1/190 to Alpha on Tue Apr 7 14:51:40 2020
    python C:\[path]

    Thank you

    I tested that script out, looks great--but couldn't figure out how to change the font back after it ran -- the docs were missing that part :)
    Download V2 it does it for you, apparently a lot of folks had trouble

    Works good now

    Rick

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/64)
    * Origin: Abacus BBS (21:1/190)
  • From Captain Obvious@21:1/157 to Nitro on Thu Apr 9 19:41:40 2020
    On 07 Apr 2020, Nitro said the following...

    change the font back after it ran -- the docs were missing that part
    Download V2 it does it for you, apparently a lot of folks had trouble

    Good to know. I just set it up a little while ago and noticed that. Had to manually change my font back to cp437 in Netrunner.

    -=>Richard Miles<=-
    -=>Captain Obvious<=-
    -=>bbs.shadowscope.com<=-

    --- Mystic BBS v1.12 A46 2020/03/12 (Windows/32)
    * Origin: Shadowscope BBS | bbs.shadowscope.com | Temple, GA (21:1/157)