• Mystic python help

    From Rich Lawrence@3:770/100 to All on Fri Oct 14 09:48:57 2016
    Hi everyone!

    I am getting back into the BBS and I wrote a small script to allow a user to agree to an Acceptable Use policy. But when it comes to outputting the text
    of the file, it doesn't seem to happen. Here is the code I have for that..

    file = open('aup.txt' , 'r')
    for lines in file:
    writeln(lines)


    When I run this from a console, it outputs the text with no problems. But
    when I run it from the BBS, it doesn't seem to print anything.

    Obviously, I'm missing something with how it should be to print output the file. Any thoughts or help?

    Thanks!
    de KB2MOB

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (3:770/100)
  • From Gryphon@1:106/324 to Rich Lawrence on Thu Oct 13 21:27:59 2016
    On 10/14/16, Rich Lawrence said the following...

    Hi everyone!

    I am getting back into the BBS and I wrote a small script to allow a
    user to agree to an Acceptable Use policy. But when it comes to
    outputting the text of the file, it doesn't seem to happen. Here is the code I have for that..

    file = open('aup.txt' , 'r')
    for lines in file:
    writeln(lines)


    When I run this from a console, it outputs the text with no problems. But when I run it from the BBS, it doesn't seem to print anything.

    Obviously, I'm missing something with how it should be to print output
    the file. Any thoughts or help?

    It's prolly flashing on the screen and rolling off before you can see it.
    You prolly need to add a <pipe>PA at the end of the message to make it pause.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (1:106/324)
  • From Rich Lawrence@3:770/100 to Gryphon on Mon Oct 17 14:59:04 2016
    On 10/13/16, Gryphon pondered and said...
    It's prolly flashing on the screen and rolling off before you can see
    it. You prolly need to add a <pipe>PA at the end of the message to make
    it pause.

    I added the pipe and PA command and when I scroll back, I'm still not seeing anything. I'm still lost as it works fine in IDLE and in the Python shell.

    Any thing else anyone can think of?

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (3:770/100)