• Executing Phython Script Events

    From Codefenix@21:4/141 to All on Sat Aug 24 15:32:57 2024
    Hi all, new-ish to Mystic and even newer to Python.

    I have a Python script that I'm running as an hourly event to update board and MRC stats for a web page. I'm using the shell syntax:

    mystic -u[user] -p[pass] -ywebstats.py *

    And it's working fine. But it seems like it's logging me in each time in order to execute the script, so I'm just wondering if that's the "right" way to call a script in an event, or if there's a better way to do what I'm trying to do.

    (* yes, it's a Python 2 script, but I'm trying to work towards a Python 3 only environment, but that's a topic for another day :P)

    |01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07


    ...The test of the morality of a society is what it does for its children.
    --- SBBSecho 3.20-Win32
    * Origin: -=[conchaos.synchro.net | ConstructiveChaos BBS]=- (21:4/141)
  • From ogg@21:2/147 to Codefenix on Sat Aug 24 16:32:10 2024
    On 24 Aug 2024, Codefenix said the following...

    Hi all, new-ish to Mystic and even newer to Python.

    I have a Python script that I'm running as an hourly event to update
    board and MRC stats for a web page. I'm using the shell syntax:

    mystic -u[user] -p[pass] -ywebstats.py *

    And it's working fine. But it seems like it's logging me in each time in order to execute the script, so I'm just wondering if that's the "right" way to call a script in an event, or if there's a better way to do what I'm trying to do.

    (* yes, it's a Python 2 script, but I'm trying to work towards a Python
    3 only environment, but that's a topic for another day :P)

    <codeŸenix>

    I run my timed events from the "Event" menu. Enter a new event, select it as hourly. The command I use is "python mysticbackup.py" Mine is set for 6 hours. Let me know if you need more details.

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.net:2323

    ... You can learn many things from children... like how much patience you have

    --- Mystic BBS v1.12 A49 2024/05/29 (Windows/64)
    * Origin: Altair IV BBS (21:2/147)
  • From Codefenix@21:4/141 to ogg on Sat Aug 24 18:01:32 2024
    Re: Executing Phython Script Events
    By: ogg to Codefenix on Sat Aug 24 2024 05:32 pm

    I run my timed events from the "Event" menu. Enter a new event, select it as hourly. The command I use is "python mysticbackup.py" Mine is set for 6 hours. Let me know if you need more details.

    Ah, cool. Thanks!

    |01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07


    ...I'm not broke, I'm just badly bent.
    --- SBBSecho 3.20-Win32
    * Origin: -=[conchaos.synchro.net | ConstructiveChaos BBS]=- (21:4/141)