• Python script

    From Rick Smith@1:340/202 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.

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/64)
    * Origin: Abacus BBS (1:340/202)
  • From Paul Hayton@3:770/100 to Rick Smith on Tue Apr 7 16:20:40 2020
    On 06 Apr 2020 at 02:30p, Rick Smith pondered and said...

    Greetings All!

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

    Yes just add the script and the path to it in your shell line then set the script up as an event type that you want it to run with.

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
  • From Rick Smith@1:340/202 to Paul Hayton on Tue Apr 7 11:49:32 2020
    Greetings Paul,

    Yes just add the script and the path to it in your shell line then set
    the script up as an event type that you want it to run with.

    What I had that didnt appear to be working was a new event "Hourly" with it pointing to c:\mystic\themes\default\scripts\ctracker_mystic.py

    Thoughts?

    Rick

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/64)
    * Origin: Abacus BBS (1:340/202)
  • From Paul Hayton@3:770/100 to Rick Smith on Wed Apr 8 13:03:44 2020
    On 07 Apr 2020 at 11:49a, Rick Smith pondered and said...

    What I had that didnt appear to be working was a new event "Hourly" with it pointing to c:\mystic\themes\default\scripts\ctracker_mystic.py

    Thoughts?

    saw you got a reply about this in fsxNet, glad you could get it sussed :)

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
  • From Richard Miles@1:3634/24 to Rick Smith on Thu Apr 9 19:28:52 2020
    On 07 Apr 2020, Rick Smith said the following...

    What I had that didnt appear to be working was a new event "Hourly" with it pointing to c:\mystic\themes\default\scripts\ctracker_mystic.py

    Are you running it as "Python c:\mystic\themes\default\scripts\ctracker_mystic.py"?

    -=>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 (1:3634/24)
  • From Rick Smith@1:340/202 to Richard Miles on Thu Apr 9 17:18:25 2020
    Are you running it as "Python

    Yes I tried it with python
    c:\mystic\themes\default\scripts\ctracker_mystic.py and just kept getting a "9009" error so I turned it off and just had windows run it every hour and
    now works.

    Regards,

    Rick

    --- Mystic BBS v1.12 A46 2020/03/29 (Windows/64)
    * Origin: Abacus BBS (1:340/202)
  • From g00r00@1:129/215 to Rick Smith on Thu Apr 9 21:41:16 2020
    Yes I tried it with python c:\mystic\themes\default\scripts\ctracker_mystic.py and just kept
    getting a "9009" error so I turned it off and just had windows run it every hour and now works.

    From Windows:

    Trying to execute a command that does not exist and then checking
    for the %errorcode% gives me a 9009:

    idontexist.exe
    'idontexist.exe' is not recognized as an internal or external command,
    operable program or batch file.

    echo %errorlevel%
    9009

    --- Mystic BBS v1.12 A46 2020/04/09 (Windows/64)
    * Origin: Sector 7 (1:129/215)