• mail not tossing

    From Rick Smith@1:105/10 to All on Thu Jan 5 06:39:02 2023
    Greetings All!

    I noticed on my new setup (working almost perfectly) that binkd starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss afix
    05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt toss afix'
    05 Jan 06:42:59 [46710] rc=17664


    this is my binkd.cfg line, which worked fine on bbs when it was on the RPI now on VM does not appear to

    exec "nice -n 19 /usr/local/bin/hpt toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]
    exec "nice -n 19 /usr/local/bin/htick toss scan" /mystic/echomail/in/*.tic *.TIC



    ----
    Regards,


    Rick Smith (Nitro)

    ... I'm afraid I put too much BS into BBSing
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Wilfred van Velzen@2:280/464 to Rick Smith on Thu Jan 5 17:26:27 2023
    Hi Rick,

    On 2023-01-05 06:39:02, you wrote to All:

    I noticed on my new setup (working almost perfectly) that binkd starts
    to
    execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss afix
    05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt toss afix'
    05 Jan 06:42:59 [46710] rc=17664


    this is my binkd.cfg line, which worked fine on bbs when it was on the RPI now on VM does not appear to

    exec "nice -n 19 /usr/local/bin/hpt toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z] exec "nice -n 19 /usr/local/bin/htick toss scan" /mystic/echomail/in/*.tic *.TIC

    Have you tried running that same command as the same user that binkd runs as, on the command line? And see what happens...

    Bye, Wilfred.

    --- FMail-lnx64 2.1.0.20-B20230102
    * Origin: FMail development HQ (2:280/464)
  • From Oli@2:280/464.47 to Rick Smith on Thu Jan 5 17:49:29 2023
    Rick wrote (2023-01-05):

    Greetings All!

    I noticed on my new setup (working almost perfectly) that binkd starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss afix
    05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    Maybe look at the hpt logs?

    The first thing I would check are user permissions.

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Rick Smith@1:105/10 to Oli on Fri Jan 6 05:34:42 2023
    Greetings Oli!

    Thursday January 05 2023 17:49, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-05):

    Greetings All!

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    Maybe look at the hpt logs?

    The first thing I would check are user permissions.

    So still is not working. I can do it manually and it runs without errors. Binkd for some reason cannot seem to kick it off, I have tried doing a script in /usr/local/bin for binkd to run and it wont fire, but if I run it from any prompt it works as expected. Everything binkd or husky uses is in /fido/etc which my user owns and the bbs is in /mystic also which my user owns... ?


    ----
    Regards,


    Rick Smith (Nitro)

    ... Quit BBSing; the wife and dog will be friendlier.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Tommi Koivula@2:221/1 to Rick Smith on Fri Jan 6 16:09:38 2023
    Hello, Rick Smith.
    On 06/01/2023 15.34 you wrote:

    Greetings Oli!
    Thursday January 05 2023 17:49, you wrote to me about an urgent matter!:
    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-05):
    Greetings All!
    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code
    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664
    Maybe look at the hpt logs?
    The first thing I would check are user permissions.
    So still is not working. I can do it manually and it runs without errors. Binkd for some reason cannot seem to kick it off, I have tried doing a script in /usr/local/bin for binkd to run and it wont fire, but if I run it from any prompt it works as expected. Everything binkd or husky uses is in /fido/etc which my user owns and the bbs is in /mystic also which my user owns... ?

    I would remove that 'nice' first. Do you really need it?

    --- HotdogEd/2.13.5 (Android; Google Android; rv:1) Hotdoged/1669919349000 HotdogEd/2.13.5
    * Origin: nntp://rbb.fidonet.fi - Lake Ylo - Finland (2:221/1.0)
  • From Rick Smith@1:105/10 to Tommi Koivula on Fri Jan 6 07:57:32 2023
    Greetings Tommi!

    Friday January 06 2023 16:09, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hello, Rick Smith.
    On 06/01/2023 15.34 you wrote:

    Greetings Oli!
    Thursday January 05 2023 17:49, you wrote to me about an urgent
    matter!:
    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-05):
    Greetings All!
    run and it wont fire, but if I run it from any prompt it works as
    expected. Everything binkd or husky uses is in /fido/etc which
    my user owns and the bbs is in /mystic also which my user owns...
    ?

    I would remove that 'nice' first. Do you really need it?

    I did, no not needed as it turns out. Still wouldnt work however. So I made just a mail script and tried to have bink call that, still not working

    06 Jan 14:30:01 [59431] executing `/usr/local/bin/mail-toss'
    - 06 Jan 14:30:01 [59431] rc=17664

    However I can run mail-toss from anywhere and it works... bizarre.


    ----
    Regards,


    Rick Smith (Nitro)

    ... It was good BBSing with you Tommi!
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Wilfred van Velzen@2:280/464 to Rick Smith on Fri Jan 6 17:40:24 2023
    Hi Rick,

    On 2023-01-06 07:57:32, you wrote to Tommi Koivula:

    I did, no not needed as it turns out. Still wouldnt work however. So
    I made just a mail script and tried to have bink call that, still not working

    06 Jan 14:30:01 [59431] executing `/usr/local/bin/mail-toss'
    - 06 Jan 14:30:01 [59431] rc=17664

    However I can run mail-toss from anywhere and it works... bizarre.

    What does:

    # sudo ps -C binkd -o euser,ruser,suser,fuser,pid,args

    Show you?


    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.0-B20230105
    * Origin: FMail development HQ (2:280/464)
  • From Oli@2:280/464.47 to Rick Smith on Fri Jan 6 17:47:11 2023
    Rick wrote (2023-01-06):

    Friday January 06 2023 16:09, you wrote to me about an urgent matter!:
    I did, no not needed as it turns out. Still wouldnt work however. So I made just a mail script and tried to have bink call that, still not working

    06 Jan 14:30:01 [59431] executing `/usr/local/bin/mail-toss'
    - 06 Jan 14:30:01 [59431] rc=17664

    However I can run mail-toss from anywhere and it works... bizarre.

    Show us your script. Do you have a shebang line in mail-toos?, like

    #! /bin/sh
    or
    #! /bin/bash

    Because the script would work without it from the shell, but might not work if it is executed by another process.

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Fri Jan 6 21:32:22 2023
    Greetings Wilfred!

    Friday January 06 2023 17:40, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 2023-01-06 07:57:32, you wrote to Tommi Koivula:

    I did, no not needed as it turns out. Still wouldnt work
    however. So I made just a mail script and tried to have bink
    call that, still not working

    06 Jan 14:30:01 [59431] executing `/usr/local/bin/mail-toss'
    - 06 Jan 14:30:01 [59431] rc=17664

    However I can run mail-toss from anywhere and it works...
    bizarre.

    What does:

    # sudo ps -C binkd -o euser,ruser,suser,fuser,pid,args

    EUSER RUSER SUSER FUSER PID COMMAND
    rick rick rick rick 596 binkd: server manager (listen 24554)
    rick rick rick rick 650 binkd: client manager



    ----
    Regards,


    Rick Smith (Nitro)

    ... BBSing is a terminal experience
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Rick Smith@1:105/10 to Oli on Fri Jan 6 21:33:40 2023
    Greetings Oli!

    Friday January 06 2023 17:47, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-06):

    Friday January 06 2023 16:09, you wrote to me about an urgent
    matter!: I did, no not needed as it turns out. Still wouldnt

    Because the script would work without it from the shell, but might not work if it is executed by another process.

    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    cd /mystic/echomail/in
    hpt toss afix

    Here is my line in binkd.cfg

    exec /usr/local/bin/mail-toss" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z] *.[pP][kK][t>


    ----
    Regards,


    Rick Smith (Nitro)

    ... Taglines..........The bumper stickers of BBSing
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Oli@2:280/464.47 to Rick Smith on Sat Jan 7 09:39:41 2023
    Rick wrote (2023-01-06):

    Greetings Oli!

    Friday January 06 2023 17:47, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-06):

    Friday January 06 2023 16:09, you wrote to me about an urgent
    matter!: I did, no not needed as it turns out. Still wouldnt

    Because the script would work without it from the shell, but might
    not work if it is executed by another process.

    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    cd /mystic/echomail/in
    hpt toss afix

    shebang is there, that was not the problem.

    Maybe try it with the full path for hpt
    /usr/local/bin/hpt toss afix


    Here is my line in binkd.cfg

    exec /usr/local/bin/mail-toss"
    ^^ ^^
    Now the line is missing an opening " character

    /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z] *.[pP][kK][t>

    I doubt it would fix the problem, but I don't have any better ideas.

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Wilfred van Velzen@2:280/464 to Rick Smith on Sat Jan 7 11:04:00 2023
    Hi Rick,

    On 2023-01-06 21:32:22, you wrote to me:

    06 Jan 14:30:01 [59431] executing `/usr/local/bin/mail-toss'
    - 06 Jan 14:30:01 [59431] rc=17664

    Btw: 17664 = $4500

    $45 = 69

    But that code doesn't make sense either...

    However I can run mail-toss from anywhere and it works...
    bizarre.

    What does:

    # sudo ps -C binkd -o euser,ruser,suser,fuser,pid,args

    EUSER RUSER SUSER FUSER PID COMMAND
    rick rick rick rick 596 binkd: server manager (listen 24554) rick rick rick rick 650 binkd: client manager

    So that is clear. And you told you can run your script as user rick, so that isn't it.


    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.1-B20230107
    * Origin: FMail development HQ (2:280/464)
  • From Wilfred van Velzen@2:280/464 to Oli on Sat Jan 7 11:10:45 2023
    Hi Oli,

    On 2023-01-07 09:39:41, you wrote to Rick Smith:

    Here is my line in binkd.cfg

    exec /usr/local/bin/mail-toss"
    ^^ ^^
    Now the line is missing an opening " character

    I doubt it would fix the problem, but I don't have any better ideas.

    The opening " is essential! He did had it with his exec line that started with "nice...", but nice was specified without a path. So both instances could probably mean "file not found".

    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.1-B20230107
    * Origin: FMail development HQ (2:280/464)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Sat Jan 7 13:32:04 2023
    Greetings Wilfred!

    Saturday January 07 2023 11:10, you wrote to Oli about an urgent matter!:

    Hi Oli,

    On 2023-01-07 09:39:41, you wrote to Rick Smith:

    Here is my line in binkd.cfg

    exec /usr/local/bin/mail-toss"
    ^^ ^^
    Now the line is missing an opening " character

    I doubt it would fix the problem, but I don't have any better
    ideas.

    It turns out that binkd is running the script, but the mail is not tossing.. I put echo "processsing" > /tmp/test.txt
    in the script and that file gets created, so script is running just not working?

    ----
    Regards,


    Rick Smith (Nitro)

    ... There's more to BBSing than meets the modem.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Rick Smith@1:105/10 to Oli on Sat Jan 7 13:40:40 2023
    Greetings Oli!

    Saturday January 07 2023 09:39, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-06):

    Greetings Oli!

    Friday January 06 2023 17:47, you wrote to me about an urgent
    matter!:

    * Forwarded from area 'BINKD'
    Rick wrote (2023-01-06):

    Friday January 06 2023 16:09, you wrote to me about an urgent
    matter!: I did, no not needed as it turns out. Still wouldnt

    Because the script would work without it from the shell, but
    might not work if it is executed by another process.

    #!/bin/bash
    echo "processsing" > /tmp/test.txt
    cd /mystic/echomail/in
    hpt toss afix

    shebang is there, that was not the problem.

    Maybe try it with the full path for hpt
    /usr/local/bin/hpt toss afix


    Here is my line in binkd.cfg

    exec /usr/local/bin/mail-toss"
    ^^ ^^
    Now the line is missing an opening " character

    /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]
    *.[pP][kK][t>

    the " is there in actual config file I just missed it when copying from a file to paste here...


    ----
    Regards,


    Rick Smith (Nitro)

    ... Taglines: the <real< reason for BBSing.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Oli@2:280/464.47 to Rick Smith on Sun Jan 8 12:30:12 2023
    Rick wrote (2023-01-05):

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss afix
    05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    Btw, how does this exit code happen? Is the script / hpt really returning this value or is it some weirdness in binkd? (I don't know if values > 255 can be returned at all).

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Wilfred van Velzen@2:280/464 to Oli on Sun Jan 8 13:36:37 2023
    Hi Oli,

    On 2023-01-08 12:30:12, you wrote to Rick Smith:

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss
    afix 05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt
    toss afix' 05 Jan 06:42:59 [46710] rc=17664

    Btw, how does this exit code happen? Is the script / hpt really returning this value or is it some weirdness in binkd? (I don't know if values > 255 can be returned at all).

    It seems not possible to return values over 255 with bash, a little experimenting shows:

    # bash -c 'exit 256'; echo $?
    0
    # bash -c 'exit 17664'; echo $?
    0
    # bash -c 'exit 0'; echo $?
    0
    # bash -c 'exit 1'; echo $?
    1
    # bash -c 'exit 3'; echo $?
    3
    # bash -c 'exit 255'; echo $?
    255


    Bye, Wilfred.

    --- FMail-lnx64 2.1.5.1-B20230107
    * Origin: FMail development HQ (2:280/464)
  • From Michael Dukelsky@2:5020/1042 to Rick Smith on Sun Jan 8 18:34:42 2023
    Hello Rick,

    Thursday January 05 2023, Rick Smith wrote to All:

    I noticed on my new setup (working almost perfectly) that binkd starts
    to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt toss
    afix
    05 Jan 06:42:59 [46710] executing `nice -n 19 /usr/local/bin/hpt
    toss afix'
    05 Jan 06:42:59 [46710] rc=17664

    17664=0x4500

    The exit code returned by hpt is the higher byte, that is 0x45. Something was wrong.
    Could you please set the log levels in your hpt config:
    LogLevels 1-90A-Za-z
    and specify the path to your hpt config on the command line:
    /usr/local/bin/hpt -c /path/to/config toss afix

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Rick Smith@1:105/10 to Michael Dukelsky on Sun Jan 8 10:42:38 2023
    Greetings Michael!

    Sunday January 08 2023 18:34, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Thursday January 05 2023, Rick Smith wrote to All:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    17664=0x4500

    The exit code returned by hpt is the higher byte, that is 0x45.
    Something was wrong. Could you please set the log levels in your hpt config: LogLevels 1-90A-Za-z and specify the path to your hpt config
    on the command line: /usr/local/bin/hpt -c /path/to/config toss afix

    I did as you suggested, I still have to run the script manually. I will send you a netmail with the hpt.log attached.


    ----
    Regards,


    Rick Smith (Nitro)

    ... Reality is for people who can't handle BBSing
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Michael Dukelsky@2:5020/1042 to Rick Smith on Sun Jan 8 22:52:16 2023
    Hello Rick,

    Sunday January 08 2023, Rick Smith wrote to Michael Dukelsky:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    17664=0x4500

    The exit code returned by hpt is the higher byte, that is 0x45.
    Something was wrong. Could you please set the log levels in your
    hpt
    config: LogLevels 1-90A-Za-z and specify the path to your hpt
    config on the command line: /usr/local/bin/hpt -c /path/to/config
    toss afix

    I did as you suggested, I still have to run the script manually. I
    will send you a netmail with the hpt.log attached.

    Everything looks good in the log I've received from you. So, when you run the script manually, it works. And what happens if you put the following line to your binkd config:
    exec "/usr/local/bin/hpt -c /path/to/hpt/config toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]

    BTW, if SELinux is on, it is better to switch it off for now.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Rick Smith@1:105/81 to Michael Dukelsky on Sun Jan 8 12:43:38 2023
    Hello Michael!

    Sunday January 08 2023 22:52, you wrote to me:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Sunday January 08 2023, Rick Smith wrote to Michael Dukelsky:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    Everything looks good in the log I've received from you. So, when you
    run the script manually, it works. And what happens if you put the following line to your binkd config: exec "/usr/local/bin/hpt -c /path/to/hpt/config toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]
    OK I add this to binkd will report back

    BTW, if SELinux is on, it is better to switch it off for now.

    I do not have this running I believe.
    Regards,

    Rick

    ... Teenage Hell: A parent who's into BBSing
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Rick Smith@1:105/81 to Michael Dukelsky on Sun Jan 8 12:45:02 2023
    Hello Michael!

    Sunday January 08 2023 22:52, you wrote to me:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Sunday January 08 2023, Rick Smith wrote to Michael Dukelsky:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    run the script manually, it works. And what happens if you put the

    Yes works as expected if I just run mail-toss from command line.


    Regards,

    Rick

    ... TAGLINE A BBS addict is hooked when: you consider BBSing better than chocolat
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Rick Smith@1:105/10 to Michael Dukelsky on Sun Jan 8 13:21:20 2023
    Greetings Michael!

    Sunday January 08 2023 22:52, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Sunday January 08 2023, Rick Smith wrote to Michael Dukelsky:

    following line to your binkd config: exec "/usr/local/bin/hpt -c /path/to/hpt/config toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]

    this made no difference still not tossing by itself only when I run the script manually

    ----
    Regards,


    Rick Smith (Nitro)

    ... Taglines: the <real< reason for BBSing.
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Rick Smith@1:105/10 to Michael Dukelsky on Sun Jan 22 06:47:38 2023
    Greetings Michael!

    Sunday January 08 2023 18:34, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Thursday January 05 2023, Rick Smith wrote to All:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    17664=0x4500

    The exit code returned by hpt is the higher byte, that is 0x45.
    Something was wrong. Could you please set the log levels in your hpt config: LogLevels 1-90A-Za-z and specify the path to your hpt config
    on the command line: /usr/local/bin/hpt -c /path/to/config toss afix

    So rebuilding fixed that mail not tossing from last week on my bbs. I have just in last couple of days setup another instance of hpt and it is producing the exact behavior, not tossing pkt's, same error code reported in binkd.log

    22 Jan 06:33:21 [2018] Running /usr/local/bin/mail-toss.sh
    - 22 Jan 06:33:21 [2018] executing `/usr/local/bin/mail-toss.sh'
    - 22 Jan 06:33:21 [2018] rc=17664

    Should I rebuild again.? This is an exact copy of configs and scripts, both instances have same paths, etc.


    ----
    Regards,


    Rick Smith (Nitro)

    ... You know you're hooked when: you consider BBSing better than chocolate
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Rick Smith@1:105/10 to Michael Dukelsky on Sun Jan 22 09:11:40 2023
    Greetings Michael!

    Sunday January 08 2023 22:52, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hello Rick,

    Sunday January 08 2023, Rick Smith wrote to Michael Dukelsky:

    I noticed on my new setup (working almost perfectly) that binkd
    starts to execute my toss command but I get the rc code

    05 Jan 06:42:59 [46710] Running nice -n 19 /usr/local/bin/hpt
    toss afix 05 Jan 06:42:59 [46710] executing `nice -n 19
    /usr/local/bin/hpt toss afix' 05 Jan 06:42:59 [46710] rc=17664

    17664=0x4500

    The exit code returned by hpt is the higher byte, that is 0x45.
    Something was wrong. Could you please set the log levels in your
    hpt
    config: LogLevels 1-90A-Za-z and specify the path to your hpt
    config on the command line: /usr/local/bin/hpt -c
    /path/to/config toss afix

    I did as you suggested, I still have to run the script manually.
    I will send you a netmail with the hpt.log attached.

    Everything looks good in the log I've received from you. So, when you
    run the script manually, it works. And what happens if you put the following line to your binkd config: exec "/usr/local/bin/hpt -c /path/to/hpt/config toss afix" /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]

    got it working by adding config path to the script.. I have an "export FIDOCONFIG=/etc/ftn/config" in .bashrc is that not sufficient?


    ----
    Regards,


    Rick Smith (Nitro)

    ... Hmmm ... isn't BBSing just full of surprises?
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Michael Dukelsky@2:5020/1042 to Rick Smith on Sun Jan 22 20:20:42 2023
    Hello Rick,

    Sunday January 22 2023, Rick Smith wrote to Michael Dukelsky:

    Everything looks good in the log I've received from you. So, when
    you run the script manually, it works. And what happens if you
    put the following line to your binkd config: exec
    "/usr/local/bin/hpt -c /path/to/hpt/config toss afix"
    /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]

    got it working by adding config path to the script.. I have an "export FIDOCONFIG=/etc/ftn/config" in .bashrc is that not sufficient?

    It should be sufficient. It looks like the environment is stripped. You may check it by printing the FIDOCONFIG variable before calling hpt:

    echo "$FIDOCONFIG" > test.txt; /usr/local/bin/hpt toss afix

    Put that in a script and mention its name in your binkd config

    exec your_script /mystic/echomail/in/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z]

    If there is nothing in test.txt, then the value of FIDOCONFIG is lost and you must specify the config path.

    Michael

    ... node (at) f1042 (dot) ru
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Moscow, Russia (2:5020/1042)
  • From Wilfred van Velzen@2:280/464.112 to Rick Smith on Mon Jan 23 08:43:44 2023
    Hi Rick,

    On 22 Jan 23 09:11, Rick Smith wrote to Michael Dukelsky:
    about: "mail not tossing":

    got it working by adding config path to the script.. I have an "export FIDOCONFIG=/etc/ftn/config" in .bashrc is that not sufficient?

    No. From `man bash`:

    "When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc then ~/.bashrc when those files exist and are readable. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc.

    When bash is started non-interactively, to run a shell script, for example, ..."


    Wilfred.

    --- FMail-W64 2.1.5.1-B20230112
    * Origin: point@work (2:280/464.112)
  • From Rick Smith@1:105/10 to Wilfred van Velzen on Mon Jan 23 06:07:14 2023
    Greetings Wilfred!

    Monday January 23 2023 08:43, you wrote to me about an urgent matter!:

    * Forwarded from area 'BINKD'
    Hi Rick,

    On 22 Jan 23 09:11, Rick Smith wrote to Michael Dukelsky:
    about: "mail not tossing":

    got it working by adding config path to the script.. I have an
    "export FIDOCONFIG=/etc/ftn/config" in .bashrc is that not
    sufficient?

    No. From `man bash`:

    "When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc then ~/.bashrc when those files exist and are readable. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc.

    When bash is started non-interactively, to run a shell script, for example, ..."

    Very interesting, thank you wilfred...




    ----
    Regards,


    Rick Smith (Nitro)

    ... BBSing and Computers
    --- GoldED+/LNX 1.1.5-b20220504
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)