• incoming mail

    From Rick Smith@1:105/10 to All on Saturday, August 06, 2022 05:48:10
    Greetings All!

    I am having a hard time getting binkd to run the exec nice command after it receives new mail.. Looking at my linux installs compared to this os2 install logs the os2 log never calls for the toss command, it creates the flags and that is all. Here is an example.

    06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for us
    + 06 Aug 00:20:18 [128] pwd protected session (MD5)
    - 06 Aug 00:20:18 [128] session in CRYPT mode
    - 06 Aug 00:20:18 [128] receiving ee168600.sa0 (2372 byte(s), off 0)
    + 06 Aug 00:20:18 [128] ee168600.sa0 -> \ftn\inb\ee168600.sa0
    06 Aug 00:20:18 [128] got *.sa?, delayed creating C:\ftn\flags\fidoin.now
    + 06 Aug 00:20:18 [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS, 1:105/81@fidonet)
    + 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/2372 bytes))
    06 Aug 00:20:18 [128] Creating C:\ftn\flags\fidoin.now
    06 Aug 00:20:18 [128] session closed, quitting...
    06 Aug 00:20:18 [65] rc(128)=0



    ----
    Regards,


    Rick Smith (Nitro)

    ... TAGLINE A BBS addict is hooked when: you consider BBSing better than chocolat
    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: ----> Abacus BBS! --->>>>bbs.abon.us:2323 (1:105/10)
  • From Tommi Koivula@2:221/360 to Rick Smith on Saturday, August 06, 2022 21:03:03
    On 6.8.2022 15:48, Rick Smith wrote:

    Greetings All!

    I am having a hard time getting binkd to run the exec nice command after it receives new mail.. Looking at my linux installs compared to this os2 install logs the os2 log never calls for the toss command, it creates the flags and that is all. Here is an example.

    06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for us
    + 06 Aug 00:20:18 [128] pwd protected session (MD5)
    - 06 Aug 00:20:18 [128] session in CRYPT mode
    - 06 Aug 00:20:18 [128] receiving ee168600.sa0 (2372 byte(s), off 0)
    + 06 Aug 00:20:18 [128] ee168600.sa0 -> \ftn\inb\ee168600.sa0
    06 Aug 00:20:18 [128] got *.sa?, delayed creating C:\ftn\flags\fidoin.now
    + 06 Aug 00:20:18 [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS, 1:105/81@fidonet)
    + 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/2372 bytes))
    06 Aug 00:20:18 [128] Creating C:\ftn\flags\fidoin.now
    06 Aug 00:20:18 [128] session closed, quitting...
    06 Aug 00:20:18 [65] rc(128)=0

    Show us the 'exec' line in your binkd conf.

    'Tommi

    ---
    * Origin: nntp://rbb.fidonet.fi - Lake Ylo - Finland (2:221/360.0)
  • From Alan Ianson@1:153/757 to Rick Smith on Saturday, August 06, 2022 11:57:06
    06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for us
    + 06 Aug 00:20:18 [128] pwd protected session (MD5)
    - 06 Aug 00:20:18 [128] session in CRYPT mode
    - 06 Aug 00:20:18 [128] receiving ee168600.sa0 (2372 byte(s), off 0)
    + 06 Aug 00:20:18 [128] ee168600.sa0 -> \ftn\inb\ee168600.sa0
    06 Aug 00:20:18 [128] got *.sa?, delayed creating C:\ftn\flags\fidoin.now
    + 06 Aug 00:20:18 [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS, 1:105/81@fidonet)
    + 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/2372 bytes))
    06 Aug 00:20:18 [128] Creating C:\ftn\flags\fidoin.now
    06 Aug 00:20:18 [128] session closed, quitting...
    06 Aug 00:20:18 [65] rc(128)=0

    Do you have an exec for your tosser as well? I would check that exec line for errors that might cause it to fail.

    I was using flag files at one time and my script/batch would check for that flag file and if found delete it and run the tosser so that might work for you also.

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  • From Rick Smith@1:105/81 to Alan Ianson on Saturday, August 06, 2022 13:04:24
    Hello Alan!

    Saturday August 06 2022 11:57, you wrote to me:

    * Forwarded from area 'BINKD'
    06 Aug 00:20:18 [128] Remote has 0b of mail and 2372b of files for
    us + 06 Aug 00:20:18 [128] pwd protected session (MD5) - 06 Aug
    00:20:18 [128] session in CRYPT mode - 06 Aug 00:20:18 [128]
    receiving ee168600.sa0 (2372 byte(s), off 0) + 06 Aug 00:20:18 [128]
    ee168600.sa0 -> \ftn\inb\ee168600.sa0 06 Aug 00:20:18 [128] got
    *.sa?, delayed creating C:\ftn\flags\fidoin.now + 06 Aug 00:20:18
    [128] rcvd: ee168600.sa0 (2372, 2372.00 CPS,
    1:105/81@fidonet)
    + 06 Aug 00:20:18 [128] done (from 1:105/81@fidonet, OK, S/R: 0/1
    (0/2372 bytes)) 06 Aug 00:20:18 [128] Creating
    C:\ftn\flags\fidoin.now 06 Aug 00:20:18 [128] session closed,
    quitting... 06 Aug 00:20:18 [65] rc(128)=0

    Do you have an exec for your tosser as well? I would check that exec
    line for errors that might cause it to fail.

    I was using flag files at one time and my script/batch would check for that flag file and if found delete it and run the tosser so that might work for you also.

    # Create a flag file after receiving a file
    #
    flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
    flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT?
    #flag C:\\ftn\\flags\\toss.flg
    flag C:\\ftn\\flags\\filebone.in *.tic *.TIC

    And I have tried all variations of the following I could think of

    #exec "nice -n 19 c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[STFWMstfwm][ouaherOUAHER][0-9a-Za-z] *.[pP][kK][tT]
    #exec "c:\ftn\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]
    #flag /home/fido/ftn/inb *.tic *.TIC
    #exec "nice -n 19 \\ftn\\htick toss scan" \\ftn\\inb\\*.tic
    #exec "my-pkt-unpacker /options *P *A* *F" *.pkt
    exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]

    here is my "toss.cmd"

    @echo off
    cd \ftn\inb
    set unixroot=x:
    hpt toss scan pack



    Regards,

    Rick

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Ray Quinn@1:214/23 to Rick Smith on Saturday, August 06, 2022 18:07:36
    Hello Rick!

    06 Aug 22 13:04, you wrote to Alan Ianson:


    # Create a flag file after receiving a file
    #
    flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
    flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th? *.fr?
    *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT? #flag C:\\ftn\\flags\\toss.flg flag C:\\ftn\\flags\\filebone.in *.tic *.TIC

    Which program is looking for the flags? (AKA semaphore files) Not knowing your knowlege, I won't assume anything. So forgive me if you already know this:

    Flag files are created so another program knows to go to work. The "flag" option causes binkd simply to create the file, usually a zero byte file.


    exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]

    This line should run the toss.cmd file with the commands you have listed below.

    here is my "toss.cmd"

    @echo off
    cd \ftn\inb
    set unixroot=x:
    hpt toss scan pack


    73 de W6RAY Ray Quinn
    Visalia, CA DM06II
    Ham Shack Hotline 4655


    --- GoldED+/W64-MSVC 1.1.5-b20180707
    * Origin: Ray's Road Node | Somewhere in California. (1:214/23)
  • From Oli@2:280/464.47 to Rick Smith on Sunday, August 07, 2022 08:33:30
    Rick wrote (2022-08-06):

    flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
    flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT?

    Why *.SAT?
    ^

    And I have tried all variations of the following I could think of

    #exec "nice -n 19 c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[STFWMstfwm][ouaherOUAHER][0-9a-Za-z] *.[pP][kK][tT]
    exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]

    Weird. It looks like it should work. Maybe try the same pattern as in the flag line:

    exec "c:\\ftn\\toss.cmd" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SA?

    or just omit the path, in case there is a problem in pattern matching the "\\":

    exec "c:\\ftn\\toss.cmd" *.[mwtfs][oehrau][0-9a-zA-Z]

    here is my "toss.cmd"

    @echo off
    cd \ftn\inb
    set unixroot=x:
    hpt toss scan pack

    What is the unixroot=x: line good for?

    ---
    * Origin: War is Peace. Freedom is Slavery. Ignorance is Strength. (2:280/464.47)
  • From Tommi Koivula@2:221/1 to Rick Smith on Sunday, August 07, 2022 10:32:05
    06 Aug 22 13:04, Rick Smith wrote to Alan Ianson:

    exec "c:\\ftn\\toss.cmd" c:\\ftn\\inb\\*.[mwtfs][oehrau][0-9a-zA-Z]

    One of my exec lines:

    === Cut ===
    exec "4os2.exe /c d:\\binkd\\talteen.cmd *F *A0 *H" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt
    === Cut ===

    'Tommi

    ---
    * Origin: =========================>>>> (2:221/1)
  • From Rick Smith@1:105/81 to Oli on Sunday, August 07, 2022 05:24:48
    Hello Oli!

    Sunday August 07 2022 08:33, you wrote to me:

    * Forwarded from area 'BINKD'
    Rick wrote (2022-08-06):

    flag C:\\ftn\\flags\\netmail.out *.pkt *.PKT
    flag C:\\ftn\\flags\\fidoin.now *.su? *.mo? *.tu? *.we? *.th?
    *.fr? *.sa? *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SAT?

    Why *.SAT?
    ^
    I guess it was a typo...

    exec "c:\\ftn\\toss.cmd" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa?
    *.pkt *.SU? *.MO? *.TU? *.WE? *.TH? *.FR? *.SA?

    or just omit the path, in case there is a problem in pattern matching
    the "\\":

    exec "c:\\ftn\\toss.cmd" *.[mwtfs][oehrau][0-9a-zA-Z]
    I am giving this a try, will report back

    @echo off
    cd \ftn\inb
    set unixroot=x:
    hpt toss scan pack

    had to set unixroot to a non existing path at one point to get hpt to work, I just tried it without it and it seems to work now.

    Regards,

    Rick

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Rick Smith@1:105/81 to All on Sunday, August 07, 2022 09:33:16
    Hello All!

    Sorry about the previous message not sure what happened there.. Any how I think binkd is almost working in regards to incoming mail, however still not running the toss.cmd. What I cant figure out is that in the binkd.log it doesnt show the error but on the terminal window where I was watching it, it does.. Here it is below.

    Terminial view...

    08:02 [98] executing `4os2.exe /c c:\ftn\toss.cmd c:\ftn\inb\efd45000.su0 1:10 /81@fidonet 192.168.1.25'
    nknown command "c:ftntoss.cmd"
    08:02 [98] rc=2
    08:02 [98] Creating C:\ftn\flags\fidoin.now
    08:02 [98] session closed, quitting...
    08:02 [65] rc(98)=0
    09:23 [66] idle

    Binkd.log

    07 Aug 08:02:27 [98] pwd protected session (MD5)
    07 Aug 08:02:27 [98] session in CRYPT mode
    07 Aug 08:02:27 [98] receiving efd45000.su0 (1110 byte(s), off 0)
    07 Aug 08:02:28 [98] efd45000.su0 -> c:\ftn\inb\efd45000.su0
    07 Aug 08:02:28 [98] got *.su?, delayed creating C:\ftn\flags\fidoin.now
    07 Aug 08:02:28 [98] got *.SU?, delayed creating C:\ftn\flags\fidoin.now
    07 Aug 08:02:28 [98] got *.su?, delayed starting 4os2.exe /c c:\ftn\toss.cmd * 07 Aug 08:02:28 [98] rcvd: efd45000.su0 (1110, 1110.00 CPS, 1:105/81@fidonet) 07 Aug 08:02:28 [98] done (from 1:105/81@fidonet, OK, S/R: 0/1 (0/1110 bytes)) 07 Aug 08:02:28 [98] Running 4os2.exe /c c:\ftn\toss.cmd c:\ftn\inb\efd45000.s 07 Aug 08:02:28 [98] executing `4os2.exe /c c:\ftn\toss.cmd c:\ftn\inb\efd4500 07 Aug 08:02:28 [98] rc=2
    07 Aug 08:02:28 [98] Creating C:\ftn\flags\fidoin.now
    07 Aug 08:02:28 [98] session closed, quitting...
    07 Aug 08:02:28 [65] rc(98)=0


    Here is the exact line I am using in binkd.cfg

    exec "4os2.exe /c "c:\\ftn\\toss.cmd" *F *A0 *H" *.su? *.mo? *.tu? *.we? *.th? *.fr? *.sa? *.pkt

    I have tried it with single \ and with \\ for path same result. And with and without the ""

    Regards,

    Rick

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Tommi Koivula@2:221/360 to Rick Smith on Sunday, August 07, 2022 20:12:46
    Hi Rick.

    07 Aug 22 09:33:16, you wrote to All:

    Here is the exact line I am using in binkd.cfg

    exec "4os2.exe /c "c:\\ftn\\toss.cmd" *F *A0 *H" *.su? *.mo? *.tu?

    . _ _

    Those "'s might be too much there...


    'Tommi

    ---
    * Origin: - rbb.fidonet.fi - Finland - (2:221/360)
  • From Tommi Koivula@2:221/360 to Rick Smith on Sunday, August 07, 2022 20:19:06
    Hi Rick.

    07 Aug 22 09:33:16, you wrote to All:

    "c:ftntoss.cmd" 08:02

    Also set UNIXROOT=X: _before_ running binkd/klibc.

    Spawning exes from klibc exes can be nasty... :)

    'Tommi

    ---
    * Origin: - rbb.fidonet.fi - Finland - (2:221/360)
  • From Rick Smith@1:105/81 to Tommi Koivula on Sunday, August 07, 2022 17:17:24
    Hello Tommi!

    Sunday August 07 2022 20:19, you wrote to me:

    Hi Rick.

    07 Aug 22 09:33:16, you wrote to All:

    "c:ftntoss.cmd" 08:02

    Also set UNIXROOT=X: _before_ running binkd/klibc.

    ok so I set unixroot just before running binkd startup.. will see what happens I guess next mail run, but so far its not executing any of the exec lines ive tried... hpt working fine at the moment so that is good I guess..


    Regards,

    Rick

    --- GoldED+/LNX 1.1.5-b20180707
    * Origin: Awesome Net- Oregon FTN Hub - www.awesomenet.us (1:105/81)
  • From Stephen Walsh@3:633/280 to Rick Smith on Monday, August 08, 2022 11:16:48
    Hello Rick!

    07 Aug 22 17:17, you wrote to Tommi Koivula:

    ok so I set unixroot just before running binkd startup.. will see what happens I guess next mail run, but so far its not executing any of the exec lines ive tried... hpt working fine at the moment so that is good
    I guess..

    Even though I'm running linux this is what my exec line looks like, and it get's executed every time:

    exec "/husky/hpt-copy.sh" /husky/inbound.sec/*.[STFWMstfwm][ouaherOUAHER][0-9A-Za-z] *.[pP][kK][tT]

    The hpt-copy.sh makes a backup of the mail, in year/month/day directories, and then runs the hpt process's to
    do the mail.



    Stephen


    --- GoldED+/LNX 1.1.5-b20220409
    * Origin: Dragon's Lair BBS, Telnet: dragon.vk3heg.net (3:633/280)
  • From Rick Smith@1:105/85 to Stephen Walsh on Monday, August 08, 2022 05:01:57
    Greetings Stephen!

    Monday August 08 2022 11:16, you wrote to me about an urgent matter!:

    * Forwarded from area 'binkd'

    Hello Rick!



    Even though I'm running linux this is what my exec line looks like,
    and it get's executed every time:

    Yeah my linux setups are just find been doing those for years, Os2 is a little finicky with things.


    The hpt-copy.sh makes a backup of the mail, in year/month/day
    directories, and then runs the hpt process's to do the mail.

    Thats really cool...



    ----
    Regards,


    Rick Smith (Nitro)

    ... It was good BBSing with you Stephen!
    --- GoldED+/OS2 1.1.52220220504
    * Origin: ----> OS/2 test system (1:105/85)
  • From Stephen Walsh@3:633/280 to Rick Smith on Tuesday, August 09, 2022 10:44:54
    Hello Rick!

    08 Aug 22 05:01, you wrote to me:

    Even though I'm running linux this is what my exec line looks
    like, and it get's executed every time:

    Yeah my linux setups are just fine been doing those for years, Os2 is
    a little finicky with things.

    I haven't used OS/2 in so long, the cheese has whole's in it. #;)


    The hpt-copy.sh makes a backup of the mail, in year/month/day
    directories, and then runs the hpt process's to do the mail.

    Thats really cool...

    someone posted it to either here or another network.

    I have hpt creating the lockfile in it's config.

    ---cut me here---
    #!/bin/bash

    if [ -f /husky/semafore/hpt ]
    then exit
    fi

    echo "copying packets"
    SECURE=/husky/inbound.sec
    BACKUPDIR=/husky/mail-backup

    pushd $BACKUPDIR

    if [ ! -d "`date +%Y`" ]; then
    mkdir `date +%Y`
    fi

    cd `date +%Y`

    if [ ! -d "`date +%m`" ]; then
    mkdir `date +%m`
    fi

    cd `date +%m`

    if [ ! -d "`date +%d`" ]; then
    mkdir `date +%d`
    fi

    cd `date +%d`

    find $SECURE -iname "*.pkt" -exec cp -p \{\} ./ \;
    find $SECURE -iname "*.PKT" -exec cp -p \{\} ./ \;

    for f in mo tu we th fr sa su; do
    find $SECURE -iname "*.${f}?" -exec cp -p \{\} ./ \;
    done
    /husky/bin/hpt toss
    sleep 2
    /husky/bin/hpt afix
    /husky/bin/htick scan
    sleep 2
    /husky/bin/hpt pack
    rm /husky/semafore/hpt
    ---cut me here---





    Stephen


    --- GoldED+/LNX 1.1.5-b20220409
    * Origin: Dragon's Lair BBS, Telnet: dragon.vk3heg.net (3:633/280)