• Python script

    From Rick Smith@1:229/2 to All on Monday, April 06, 2020 14:30:46
    From: nospam.Rick.Smith@f202.n340.z1.binkp.net

    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.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Paul Hayton@1:229/2 to All on Tuesday, April 07, 2020 16:20:40
    From: nospam.Paul.Hayton@f100.n770.z3.binkp.net

    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.

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Rick Smith@1:229/2 to All on Tuesday, April 07, 2020 11:49:32
    From: nospam.Rick.Smith@f202.n340.z1.binkp.net

    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

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Paul Hayton@1:229/2 to All on Wednesday, April 08, 2020 13:03:44
    From: nospam.Paul.Hayton@f100.n770.z3.binkp.net

    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 :)

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Richard Miles@1:229/2 to Rick Smith on Thursday, April 09, 2020 19:28:52
    From: nospam.Richard.Miles@f24.n3634.z1.binkp.net

    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<=-

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From Rick Smith@1:229/2 to All on Thursday, April 09, 2020 17:18:25
    From: nospam.Rick.Smith@f202.n340.z1.binkp.net

    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

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)
  • From g00r00@1:229/2 to All on Thursday, April 09, 2020 21:41:16
    From: nospam.g00r00@f215.n129.z1.binkp.net

    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

    --- SoupGate-Win32 v1.05
    * Origin: www.darkrealms.ca (1:229/2)