• echomail.out semaphore not getting created

    From MeaTLoTioN@21:1/158 to All on Sunday, September 16, 2018 22:16:35
    Hi guys,

    Wonder if anyone has seen this behaviour before... When I send a netmail to areafix at my own hub, I can see the message coming in, echomail.in semaphore is created, and then mutil does the necessary, then I can see the files get created to send back to me however mystic at the hub won't create the echomail.out semaphore file.

    If I "touch echomail.out" (creates an empty file in linux), mystic catches
    that and starts the sending process fine, but for some reason it just won't create the semaphore. I waited 10 minutes or so before issuing the "touch echomail.out" command, just in case it's somehow delayed.

    Help gratefully appreciated.

    Best regards,
    Christian

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: The Quantum Wormhole, Ramsgate, UK. bbs.erb.pw (21:1/158)
  • From Cmech@21:2/117 to Meatlotion on Sunday, September 16, 2018 16:28:37
    * An ongoing debate between MeaTLoTioN and All rages on ...

    then I can see the files get created to send back to me however mystic
    at the hub won't create the echomail.out semaphore file.

    My echoin script always does an echout (mutil echout.ini | fidopoll send) so I inadvertently prevent your problem. Might try that?


    .- Keep the faith, --------------------------------------------------.
    | |
    | Ben aka cMech Web: http|ftp|binkp|telnet|ssh://cmech.dynip.com |
    | |
    | vvvvvv Email: fido4cmech(at)lusfiber.net |
    | { O O } Home page: http://cmech.dynip.com/homepage/ |
    | __m___oo___m__ |
    `--| | | |- WildCat! BBS 24/7 +1-337-984-4794 any BAUD 8,N,1 -'

    ... You can always soak it in sulfuric acid to kill the bacteria. [smirk]
    --- GoldED+/W32-MSVC v1.1.5-g20180902 + Mystic BBS v1.12 A39
    * Origin: FSXNet - Positronium: telnet://cmech.dynip.com (21:2/117)
  • From Al@21:4/106 to MeaTLoTioN on Sunday, September 16, 2018 14:36:44
    Re: echomail.out semaphore not getting created
    By: MeaTLoTioN to All on Sun Sep 16 2018 10:16 pm

    Wonder if anyone has seen this behaviour before... When I send a netmail to areafix at my own hub, I can see the message coming in, echomail.in semaphore is created, and then mutil does the necessary, then I can see the files get created to send back to me however mystic at the hub won't create the echomail.out semaphore file.

    When I ran Mystic I had a send command in the event that tosses incomming mail just in case there was new echomail/netmail to be sent after a toss.

    something like "mutil import|./fidopoll send" in the event.

    Ttyl :-),
    Al


    ... But that trick never works! -Rocky
    --- SBBSecho 3.06-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From Al@21:4/106 to MeaTLoTioN on Sunday, September 16, 2018 14:38:35
    Re: echomail.out semaphore not getting created
    By: Al to MeaTLoTioN on Sun Sep 16 2018 02:36 pm

    something like "mutil import|./fidopoll send" in the event.

    On linux that should be "./mutil import|./fidopoll send". :)

    Ttyl :-),
    Al


    ... My spelling? Oh, it's just line noise.
    --- SBBSecho 3.06-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From MeaTLoTioN@21:1/158 to Al on Sunday, September 16, 2018 22:54:10
    ok I did my own work around based on the suggestions I have had back...

    In mystic root folder, created a file called tsend, contents are

    #!/bin/bash
    touch semaphore/echomail.out


    Then I made it executable;

    chmod +x tsend


    then in my events viewer, modified the mailin event to run this

    ./mutil mailin.ini|./tsend

    Now whenever it gets mail in, it will automatically create the semaphore, and then process it within a few seconds, if there's mail to go out, it will send it, if not, it just deleted the semaphore.

    I think I'd rather just create the semaphore than try and use fidopoll just because to me it's neater and follows the right process, be that as it may, whatever works, right?

    Thanks guys for your suggestions, got it solved very quickly.

    Best regards,
    Christian.

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: The Quantum Wormhole, Ramsgate, UK. bbs.erb.pw (21:1/158)
  • From Avon@21:1/101 to MeaTLoTioN on Monday, September 17, 2018 13:48:41
    On 09/16/18, MeaTLoTioN pondered and said...

    Now whenever it gets mail in, it will automatically create the
    semaphore, and then process it within a few seconds, if there's mail to
    go out, it will send it, if not, it just deleted the semaphore.

    I think I'd rather just create the semaphore than try and use fidopoll just because to me it's neater and follows the right process, be that as it may, whatever works, right?

    I think you are over thinking it. Leave Mystic to create the semaphores. Just add fidopoll send to the shell line when you run mutil to process incoming echomail and netmail.

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)