• binkd.cfg exec does not work

    From Benny Pedersen@2:230/0 to All on Sun Jun 10 12:40:22 2018
    Hello All!

    SRC_URI="ftp://happy.kiev.ua/pub/fidosoft/mailer/binkd/snapshot/binkd-1.1.tar.gz"
    Binkd 1.1a-96 (May 13 2018 07:50:55/Linux)

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?

    --- Msged/LNX 6.1.2 (Linux/4.17.0-gentoo (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)
  • From Paul Quinn@3:640/1384 to Benny Pedersen on Sun Jun 10 23:00:54 2018
    Hi! Benny,

    On 10 Jun 18 12:40, you wrote to All:

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?

    Have you tried quote marks (") where required?

    Cheers,
    Paul.

    ... For a good time call 86753099 (Jenny)...
    --- GoldED+/LNX 1.1.5-b20130515
    * Origin: Quinn's Rock - Live from Paul's Xubuntu desktop! (3:640/1384)
  • From Benny Pedersen@2:230/0 to Paul Quinn on Sun Jun 10 23:33:38 2018
    Hello Paul!

    10 Jun 2018 23:00, Paul Quinn wrote to Benny Pedersen:

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?

    Have you tried quote marks (") where required?

    my logic sense says /bin/sh does not need it, since there is no space in that command ?

    if /bin/sh is called and executed the next args would be out of binkd hands to handle, no ?

    i have aswell tryed example config variant, but it fails, funny things is that its logged as working, but not anyway since still unprosseded files in my inbound

    ----- doall.sh begins -----
    #!/bin/sh
    #
    # only run if not all ready doing
    #
    if [ -f /home/xpoint/fido/lock ]; then
    echo 'Already running - exiting dohpt;';
    exit;
    fi
    #
    # clean file areas with expire
    #
    /usr/bin/htick clean
    #
    # toss echomail
    #
    /usr/bin/hpt toss
    #
    # process afix
    #
    /usr/bin/hpt afix
    #
    # scan echomail out
    #
    /usr/bin/hpt scan
    #
    # pack outbound mail out
    #
    /usr/bin/hpt pack
    #
    # make hpt queue update
    #
    /usr/bin/hpt qupd
    #
    # link echomail
    #
    /usr/bin/hptlink
    #
    # process afix
    #
    /usr/bin/htick ffix
    #
    # make sure file exists
    #
    touch /home/ftp/pub/filelist/annfecho.txt
    #
    # make file list
    #
    /usr/bin/htick toss annfecho /home/ftp/pub/filelist/annfecho.txt filelist /home/ftp/pub/filelist/filelist.txt
    #
    # create lda archive of it
    #
    /usr/bin/lha a /home/ftp/pub/filelist/filelist.lha /home/ftp/pub/filelist/filelist.txt
    #
    # make zip archive of it
    #
    /usr/bin/zip -9 /home/ftp/pub/filelist/filelist.zip /home/ftp/pub/filelist/filelist.txt
    #
    # make rar archive of it
    #
    /opt/bin/rar a -std -inul /home/ftp/pub/filelist/filelist.rar /home/ftp/pub/filelist/filelist.txt
    #
    # make nodelist update if nlupdate exists :)
    #
    [ -f /usr/bin/nlupdate ] && /usr/bin/nlupdate
    #
    # announce new files
    #
    /usr/bin/htick announce
    #
    TMP=`cat /home/ftp/pub/filelist/annfecho.txt | wc -l`
    if [ $TMP -ge 1 ];
    then
    /usr/bin/hpt post -nf "Sysop" -af 2:230/38.0 -nt "All" -at 2:230/38.0 -s "new fileareas at xpoint" -e "xpoint_info" -z "yes" -o "Enough" -f loc -d /home/ftp/pub/filelist/annfecho.txt
    fi
    #
    # update queue reports
    #
    /usr/bin/hpt qrep
    #
    # end
    #
    ----- doall.sh ends -----

    sugestions welcommed


    Regards Benny

    ... there can only be one way of life, and it works :)

    --- Msged/LNX 6.1.2 (Linux/4.17.0-gentoo (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)
  • From Paul Quinn@3:640/384.125 to Benny Pedersen on Mon Jun 11 10:30:09 2018
    Hi! Benny,

    On 06/11/2018 09:33 AM, you wrote:

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?
    Have you tried quote marks (") where required?

    my logic sense says /bin/sh does not need it, since there is no space in that command ?

    I think your binkD is seeing each definition as an unstructured string of characters. Re-read the documentation.

    (Also BTW, the call to "/bin/sh" is unnecessary.)

    Cheers,
    Paul.

    --- Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
    * Origin: I used to program in C until I destroyed my FAT... (3:640/384.125)
  • From mark lewis@1:3634/12.73 to Benny Pedersen on Mon Jun 11 11:51:44 2018
    On 2018 Jun 10 12:40:22, you wrote to All:

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?

    don't overthink it ;)

    exec /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec /home/xpoint/bin/sln_sf.pl *S *.req

    make sure your scripts are "chmod +x" and that they have a proper "#!/exe/loc/binary" line to execute them with the proper processor...


    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... one ringy dingy, two ringy dingy....
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Benny Pedersen on Mon Jun 11 11:51:44 2018

    On 2018 Jun 10 12:40:22, you wrote to All:

    exec /bin/sh /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /bin/sh /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec !/usr/bin/perl /home/xpoint/bin/sln_sf.pl *S *.req

    how to make it work ?

    don't overthink it ;)

    exec /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec /home/xpoint/bin/sln_sf.pl *S *.req

    make sure your scripts are "chmod +x" and that they have a proper "#!/exe/loc/binary" line to execute them with the proper processor...


    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... one ringy dingy, two ringy dingy....
    ---
    * Origin: (1:3634/12.73)
  • From Benny Pedersen@2:230/0 to mark lewis on Mon Jun 11 23:32:20 2018
    Hello mark!

    11 Jun 2018 11:51, mark lewis wrote to Benny Pedersen:

    don't overthink it ;)

    +1

    exec /home/xpoint/bin/doall.sh *.[pP][kK][tT]
    exec /home/xpoint/bin/doall.sh *.[mwtfs][oehrau][0-9a-zA-Z]
    exec /home/xpoint/bin/sln_sf.pl *S *.req

    make sure your scripts are "chmod +x" and that they have a proper "#!/exe/loc/binary" line to execute them with the proper processor...

    ----- doall begins -----
    -rwx------ 1 xpoint users 2454 Jun 10 20:23 bin/doall.sh

    #!/bin/sh
    #
    #
    ----- doall ends -----

    this scripts workds from mc


    Regards Benny

    ... there can only be one way of life, and it works :)

    --- Msged/LNX 6.1.2 (Linux/4.17.0-gentoo (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)
  • From Matt Bedynek@1:19/10 to Benny Pedersen on Tue Jun 12 01:07:16 2018
    Benny,

    Monday June 11 2018 23:32, you wrote to mark lewis:

    #!/bin/sh

    See your question already was answered but wanted to share a little more since I havent written a message in a good while...

    #!/usr/bin/env sh

    The more "proper" way to do it. :-)

    .. or replace sh with bash if you want more functionality.

    You may also want a lock file to prevent duplicate instances of mail from tossing.

    hpt can do this but im not sure if other things like tick processors do as well...

    For hpt at least, Example:

    # flag file to lock what should not be accesed by multiple husky programs
    # or multiple instances of husky programs simultaneously
    LockFile [BaseDir]/hpt.lock

    #-----------------------------------------------------------------
    # Locking
    #-----------------------------------------------------------------

    # This statement is about how program will perform when it can't
    # acquire the lock (see LockFile).
    # If it is set to some value > 0, then husky programs will wait
    # and try again a specified number of times with one second interval.
    # If 'advisorylock' isn't set or is set to zero, then program will
    # terminate immediately.

    AdvisoryLock 10

    ===============

    There are a number of custom ways to do this - which i prefer. Just be careful
    with lock files (i.e. clear them at system start up) or make them advisory (timeout).

    I simply call a cron every minute. If binkd receives mail - it will create a semaphore. If no semaphore is created then no work is done.

    Probably more than you wanted but just sharing...

    Take care,

    Matt

    ---
    * Origin: The Byte Museum - www.bytemuseum.org (1:19/10)
  • From Benny Pedersen@2:230/0 to Matt Bedynek on Sat Jun 16 22:57:02 2018
    Hello Matt!

    12 Jun 2018 01:07, Matt Bedynek wrote to Benny Pedersen:

    #!/bin/sh
    See your question already was answered but wanted to share a little
    more since I havent written a message in a good while...

    might be, just not yet solved for me

    #!/usr/bin/env sh
    The more "proper" way to do it. :-)

    thanks for that tip

    .. or replace sh with bash if you want more functionality.

    okay will test

    You may also want a lock file to prevent duplicate instances of mail
    from tossing.

    i have this done in doall.sh when hust have active lock file skip bash scripting

    hpt can do this but im not sure if other things like tick processors
    do as well...

    Probably more than you wanted but just sharing...

    no, i realle needed it


    Regards Benny

    ... there can only be one way of life, and it works :)

    --- Msged/LNX 6.1.2 (Linux/4.17.1-gentoo (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)