• Magic File Requests

    From Deon George@3:633/509.1 to All on Friday, September 14, 2018 03:51:24
    Hi - appreciate a tip if somebody could help.

    I'm trying to get "magic" file requests working and I cant seem to be able to trigger it to occur. I am using a MysticBBS to send through a .req file to
    MBSE (which it receives), but it doesnt do anything...

    I'm trying to do the example here: http://www.kofobbs.dk/mbseman/programs/mbcico.html

    IE: If I send a freq request to "STATUS" it should run that script in the
    magic directory.

    (My freq is the word STATUS in a file 027901fd.req - which was sent by
    Mystic to MBSE.)

    Can somebody give me some tips, please?

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Andrew Leary@1:320/219 to Deon George on Friday, September 14, 2018 09:02:36
    Hello Deon!

    14 Sep 18 03:51, you wrote to all:

    IE: If I send a freq request to "STATUS" it should run that script in
    the magic directory.

    (My freq is the word STATUS in a file 027901fd.req - which was sent by Mystic to MBSE.)

    Can somebody give me some tips, please?

    Is the STATUS script in your magic directory executable?

    Andrew

    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)
  • From Deon George@3:633/509.1 to Andrew Leary on Friday, September 14, 2018 14:28:32
    Howdy...

    On 09/14/18, Andrew Leary said the following...
    Is the STATUS script in your magic directory executable?

    Yes:
    mbse@874a834fd027:~/data$ ls -al magic/
    total 8
    drwxr-x--- 2 mbse bbs 36 Sep 9 10:08 .
    drwxr-xr-x 24 mbse bbs 292 Sep 7 23:01 ..
    -rw-r--r-- 1 mbse bbs 11 Sep 14 08:33 FSX_NODE
    -rwxr-xr-x 1 mbse bbs 310 Sep 5 22:29 status
    mbse@874a834fd027:~/data$

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Andrew Leary@1:320/219 to Deon George on Saturday, September 15, 2018 04:56:59
    Hello Deon!

    14 Sep 18 14:28, you wrote to me:

    On 09/14/18, Andrew Leary said the following...
    Is the STATUS script in your magic directory executable?

    Yes:
    mbse@874a834fd027:~/data$ ls -al magic/
    total 8
    drwxr-x--- 2 mbse bbs 36 Sep 9 10:08 .
    drwxr-xr-x 24 mbse bbs 292 Sep 7 23:01 ..
    -rw-r--r-- 1 mbse bbs 11 Sep 14 08:33 FSX_NODE
    -rwxr-xr-x 1 mbse bbs 310 Sep 5 22:29 status
    mbse@874a834fd027:~/data$

    ...deon

    Try renaming it to STATUS (all uppercase.)

    Andrew

    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)
  • From Deon George@3:633/509.1 to Andrew Leary on Saturday, September 15, 2018 13:05:45
    On 09/15/18, Andrew Leary said the following...
    Try renaming it to STATUS (all uppercase.)

    Hmm... I'm not sure that will do anything (as I would have expected an error
    in the logs if it were the case).

    To be honest, I dont know how they work?

    So I renamed it uppercase, but the req file is still sitting in the inbound

    mbse@874a834fd027:~/data$ ls -al inbound magic/
    inbound:
    total 4
    drwxr-x--- 2 mbse bbs 26 Sep 15 23:04 .
    drwxr-xr-x 24 mbse bbs 292 Sep 7 23:01 ..
    -rw------- 1 mbse bbs 7 Sep 14 11:18 027901fd.req

    magic/:
    total 8
    drwxr-x--- 2 mbse bbs 36 Sep 15 22:59 .
    drwxr-xr-x 24 mbse bbs 292 Sep 7 23:01 ..
    -rw-r--r-- 1 mbse bbs 11 Sep 14 08:33 FSX_NODE
    -rwxr-xr-x 1 mbse bbs 310 Sep 5 22:29 STATUS

    What triggers the req to be processed?

    (And I'm assuming sending a req file is a FREQ right?)

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Andrew Leary@1:320/219 to Deon George on Saturday, September 15, 2018 19:37:16
    Hello Deon!

    15 Sep 18 13:05, you wrote to me:

    Try renaming it to STATUS (all uppercase.)

    Hmm... I'm not sure that will do anything (as I would have expected an error in the logs if it were the case).

    I need to take a look at the mbcico code for processing FREQs. I don't believe that a .REQ file in the inbound will trigger processing; only actually receiving one from an active mail session. I will review the code to confirm that.

    To be honest, I dont know how they work?

    (And I'm assuming sending a req file is a FREQ right?)

    Yes, that's correct.

    Andrew


    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)
  • From Deon George@3:633/509 to Andrew Leary on Sunday, September 16, 2018 11:04:57
    Andrew Leary wrote to Deon George:
    I need to take a look at the mbcico code for processing FREQs. I don't believe that a .REQ file in the inbound will trigger processing; only actually
    receiving one from an active mail session. I will review the code to confirm that.

    So my Mystic did "Send" the FREQ, but MBSE just stored it in inbound....

    I just sent one to Steve and it worked, so it must be a config thing - I'll have a play now that I know how to generate one.

    ...deon


    ... "Build a watch in 179 easy steps" by C. Forsberg.

    --- MBSE BBS v1.0.7.8 (GNU/Linux-ARM)
    * Origin: Chinwag | MBSE in Docker on Pi (3:633/509)
  • From Deon George@3:633/509.1 to Andrew Leary on Tuesday, September 18, 2018 06:02:52
    On 09/16/18, Deon George said the following...
    I just sent one to Steve and it worked, so it must be a config thing - I'll have a play now that I know how to generate one.

    Cant figure this out. Appreciate any more tips.

    I dont know if it is a "non-MBSE" issue, or some other setup.

    Can somebody FREQ STATUS from me (3:633/509) and tell me if it works. (Tell
    me when you did it too, so I can look in the logs :)

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Martin Foster@2:250/1.1 to Deon George on Tuesday, September 18, 2018 09:09:00
    Hello Deon!

    On 18.09.18 at 06:02, Deon George wrote to Andrew Leary:

    [..]
    Can somebody FREQ STATUS from me (3:633/509) and tell me if it works. (Tell me when you did it too, so I can look in the logs :)

    Tried it but it didn't work .....

    ---------- 8< ----------
    = 08:55:20 CONNECT
    08:55:21 OPT CRAM-MD5-2039921a1e69320372182fe1060b59cf
    08:55:21 OPT CRC
    08:55:21 SYS Chinwag BBS
    08:55:21 ZYZ Deon George
    08:55:21 LOC Parkdale, VIC Australia
    08:55:21 NDL ICM,XX,IBN,IFC
    08:55:21 TIME Tue, 18 Sep 2018 17:55:20 +1000
    08:55:21 VER mbcico/1.0.7.9/GNU/Linux-ARM binkp/1.1
    08:55:21 OPM Chinwag MBSE
    08:55:22 non-secure
    08:55:22 OPT EXTCMD GZ BZ2 PLZ CRC
    08:55:22 TRF 0 0
    08:55:23 TRF 0 1124
    * 08:55:23 Sent 027901FD.REQ, 7b
    % 09:01:37 User break
    = 09:01:37 hangup
    - 09:01:37 exiting
    ---------- 8< ----------

    As you can see from my logfile, I waited six minutes for something to
    happen and then had to kill the session.

    Regards,
    Martin

    --- OpenXP 5.0.34
    * Origin: Bitz-Box - Bradford - UK (2:250/1.1)
  • From Deon George@3:633/509.1 to Martin Foster on Tuesday, September 18, 2018 10:21:36
    On 09/18/18, Martin Foster said the following...
    Tried it but it didn't work .....

    Thanks Martin.

    It does work! (I should test the script before asking others too - there was
    a syntax error so it bombed).

    + 18-Sep-2018 17:55:22 mbcico[203] Binkp: receive file "027901FD.REQ" date
    Sep 18 18:55:19 size 7 offset 0 comp No
    + 18-Sep-2018 17:55:22 mbcico[203] Binkp: OK 7 bytes received in 0.001
    seconds (6.836 Kb/s)
    + 18-Sep-2018 17:55:22 mbcico[203] Binkp: receiver starts batch 2
    + 18-Sep-2018 17:55:22 mbcico[203] Magic execute: STATUS

    While I was trying to get it work, it seems that Mystic doesnt trigger it to occur - I'll try and figure that part out.

    Thank you that was helpful.

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Deon George@3:633/509.1 to Andrew Leary on Wednesday, September 19, 2018 10:09:57
    Hey Andrew,

    I see your system polled me at 6:26am this morning (GMT+10) - and I'm not
    sure if the magic request worked. But my system did send you two packets:

    + 19-Sep-2018 06:26:03 mbcico[942] Magic execute: STATUS
    + 19-Sep-2018 06:26:03 mbcico[942] tmpfn "/opt/mbse/tmp/5B8E08DF"
    + 19-Sep-2018 06:26:03 mbcico[942] Execute shell: /opt/mbse/data/magic/STATUS Sysop of 1:320/219@fidonet
    ? 19-Sep-2018 06:26:04 mbcico[942] Wait returned -1, status 8318342,208: No child processes
    + 19-Sep-2018 06:26:04 mbcico[942] Last message repeated 2 times
    + 19-Sep-2018 06:26:04 mbcico[942] tmptx "/opt/mbse/tmp/5B8E08E0"
    f 19-Sep-2018 06:26:04 mbcico[942] resplist: /opt/mbse/tmp/5B8E08E0
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: mail 0, files 2682 bytes
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: send "/opt/mbse/tmp/5B8E08E3.rpl"
    as "5B8E08E5.PKT"
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: size 754 bytes, dated Sep 19 06:26:04, comp No
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: compressed 312 bytes, compression 41.4%
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: OK 754 bytes sent in 0.001 seconds (736.328 Kb/s)
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: send "/opt/mbse/tmp/5B8E08E0" as "5B8E08E2.PKT"
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: size 1928 bytes, dated Sep 19 06:26:04, comp No
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: compressed 1154 bytes, compression 59.9%
    + 19-Sep-2018 06:26:04 mbcico[942] Binkp: OK 1928 bytes sent in 0.002 seconds (941.406 Kb/s)

    Did you get something back?

    ...deon

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Chinwag | MysticBBS in Docker! (3:633/509.1)
  • From Andrew Leary@1:320/219 to Deon George on Wednesday, September 19, 2018 21:01:37
    Hello Deon!

    19 Sep 18 10:09, you wrote to me:

    I see your system polled me at 6:26am this morning (GMT+10) - and I'm
    not sure if the magic request worked. But my system did send you two packets:

    Did you get something back?

    Yes, it worked fine from this end.

    Andrew


    --- GoldED+/LNX 1.1.5-b20170303
    * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)