• Binkd File Request

    From Ray Quinn@1:103/705 to All on Thu Apr 27 21:08:32 2017
    Hello all!

    I am not a programmer. I am looking for a simple bash script to allow me to type in an FTN address, filename(s), and a connect flavo(u)r that generates
    a proper NNNNnnnn.REQ file for binkd. I realize that it is not that
    difficult to create the files necessary manually, using a programmers calculator (Windows 10 has one) to find the HEX address. I would like to
    have the script convert from decimal to hexadecimal.

    For example:

    Address: 12:345/678
    File: nodelist
    Flavor: n (normal)
    Generating /mail/out/fido.00c/015902a6.flo
    Generating /mail/out/fido.00c/015902a6.req

    Any programmers up for the task? It doesn't have to be fancy, use colors,
    etc. It could even use java. Deuce, echicken, DM...



    00d60016


    ---

    If the right side of the brain controls the left side of the body,
    then only left handed people are in their right minds.

    _____
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    GMRS WQTX645
    .. Visalia, CA USA DM06ii
    . When all else fails, ham radio works!
    ---
    * Synchronet * US 99 BBS - Visalia, CA - bbs.quinnnet.org
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Vk3jed@1:103/705 to Ray Quinn on Fri Apr 28 23:16:00 2017
    Ray Quinn wrote to All <=-

    I am not a programmer. I am looking for a simple bash script to allow
    me to type in an FTN address, filename(s), and a connect flavo(u)r that generates a proper NNNNnnnn.REQ file for binkd. I realize that it is
    not that difficult to create the files necessary manually, using a programmers calculator (Windows 10 has one) to find the HEX address. I would like to have the script convert from decimal to hexadecimal.

    I contemplated that a while back, but never got around to writing it. Might be a good project to do as I relearn Pascal. :)


    ... Warning: Your tagline is low. Pull up. Pull..
    --- MultiMail/Win32 v0.49
    * Synchronet * Freeway BBS in Bendigo, Australia.
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to Ray Quinn on Fri Apr 28 12:56:00 2017
    Ray Quinn wrote to All on 04-27-17 21:08 <=-

    Hello all!

    I am not a programmer. I am looking for a simple bash script to allow
    me to type in an FTN address, filename(s), and a connect flavo(u)r that generates a proper NNNNnnnn.REQ file for binkd. I realize that it is
    not that difficult to create the files necessary manually, using a programmers calculator (Windows 10 has one) to find the HEX address. I would like to have the script convert from decimal to hexadecimal.

    For example:

    Address: 12:345/678
    File: nodelist
    Flavor: n (normal)
    Generating /mail/out/fido.00c/015902a6.flo
    Generating /mail/out/fido.00c/015902a6.req

    Any programmers up for the task? It doesn't have to be fancy, use
    colors, etc. It could even use java. Deuce, echicken, DM...



    If I'm not mistaken, FrontDoor has this option already. I have a registered version of FD with 'FM' editor that has an option for requesting a file (Option R). I never tried it but simple google search came up with a dos script that will do it. I'm sure by using strings on the command line it could be done. Here's the script...

    :toHex dec hex -- convert a decimal number to hexadecimal, i.e. -20 to FFFFFFEC or 26 to 0000001A
    :: -- dec [in] - decimal number to convert
    :: -- hex [out,opt] - variable to store the converted hexadecimal number in
    ::Thanks to 'dbenham' dostips forum users who inspired to improve this function :$created 20091203 :$changed 20110330 :$categories Arithmetic,Encoding
    :$source http://www.dostips.com
    SETLOCAL ENABLEDELAYEDEXPANSION
    set /a dec=%~1
    set "hex="
    set "map=0123456789ABCDEF"
    for /L %%N in (1,1,8) do (
    set /a "d=dec&15,dec>>=4"
    for %%D in (!d!) do set "hex=!map:~%%D,1!!hex!"
    )
    rem !!!! REMOVE LEADING ZEROS by activating the next line, e.g. will return 1A instead of 0000001A
    rem for /f "tokens=* delims=0" %%A in ("%hex%") do set "hex=%%A"&if not defined hex set "hex=0"
    ( ENDLOCAL & REM RETURN VALUES
    IF "%~2" NEQ "" (SET %~2=%hex%) ELSE ECHO.%hex%
    )
    EXIT /b

    It looks like it strips all the leading 0's so you'd have to make some changes so it give you the last four characters.


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    === MultiMail/Win32 v0.50
    --- SBBSecho 3.00-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From Ray Quinn@1:103/705 to Bill McGarrity on Fri Apr 28 17:21:00 2017
    Bill McGarrity wrote to Ray Quinn <=-

    If I'm not mistaken, FrontDoor has this option already. I have a

    I used FrontDoor during the 1990's and was very familiar with it. It does,
    in fact, do file requests as does, Intermail, D'Bridge, and others.
    However, these programs are DOS (I could run DOSEMU or DOSBOX), and, I believe, are also Arcmail Attach mailers, not BSO. A long time ago, I
    treid Portal of Power but abandoned it as I wasn't familiar with the BSO
    style outbound. I just downloaded it and it does BSO as well as file
    requests. I would have to use DOSBOX to set it up and run the mailer, but I would rather have a down and dirty quick program, script, etc., to load up.

    To use BASH or or another shell script would limit it's use by Windows and
    DOS users. It would be nice if it was included with BINKD. For example:

    binkd -R 12:345/678 filename /path/to/binkd.conf

    It looks like it strips all the leading 0's so you'd have to make some changes so it give you the last four characters.

    For me, it would be easier to create a BASH script and I am no programmer, except for some very basic scripts. D'Bridge has DBUTIL QNAME [address] but
    it puts it is a different format.

    1:214/22 translates to 00105Y.00M

    Thanks for the suggestion. It got me thinking about other programs I have used.


    ---

    If the right side of the brain controls the left side of the
    body, then only left-handed people are in their right minds.

    ______
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    Visalia, CA USA DM06ii
    ...

    ... Bad Day: When the bird outside your window is a buzzard.
    --- MultiMail/Win32 v0.50
    * Synchronet * US 99 BBS - Visalia, CA - bbs.quinnnet.org
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Ray Quinn@1:103/705 to Vk3jed on Fri Apr 28 17:23:00 2017
    Vk3jed wrote to Ray Quinn <=-

    Ray Quinn wrote to All <=-

    I am not a programmer. I am looking for a simple bash script to allow
    me to type in an FTN address, filename(s), and a connect flavo(u)r that generates a proper NNNNnnnn.REQ file for binkd. I realize that it is
    not that difficult to create the files necessary manually, using a programmers calculator (Windows 10 has one) to find the HEX address. I would like to have the script convert from decimal to hexadecimal.

    I contemplated that a while back, but never got around to writing it. Might be a good project to do as I relearn Pascal. :)

    It could be part of BINKD. For example:

    binkd -R 12:345/678 filename /path/to/binkd.conf


    ---

    If the right side of the brain controls the left side of the
    body, then only left-handed people are in their right minds.

    ______
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    Visalia, CA USA DM06ii
    ...

    ... Computer Hacker wanted. Must have own axe.
    --- MultiMail/Win32 v0.50
    * Synchronet * US 99 BBS - Visalia, CA - bbs.quinnnet.org
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to Ray Quinn on Sat Apr 29 02:18:00 2017
    Ray Quinn wrote to Bill McGarrity on 04-28-17 17:21 <=-

    Bill McGarrity wrote to Ray Quinn <=-

    If I'm not mistaken, FrontDoor has this option already. I have a

    I used FrontDoor during the 1990's and was very familiar with it. It
    does, in fact, do file requests as does, Intermail, D'Bridge, and
    others. However, these programs are DOS (I could run DOSEMU or DOSBOX), and, I believe, are also Arcmail Attach mailers, not BSO. A long time ago, I treid Portal of Power but abandoned it as I wasn't familiar with the BSO style outbound. I just downloaded it and it does BSO as well as file requests. I would have to use DOSBOX to set it up and run the
    mailer, but I would rather have a down and dirty quick program, script, etc., to load up.

    Oh... I thought you wanted it for windows not unix. I am sure there is one for that also if you search. The scrippt I gave you could probably be transformed into a bash.


    To use BASH or or another shell script would limit it's use by Windows
    and DOS users. It would be nice if it was included with BINKD. For example:

    binkd -R 12:345/678 filename /path/to/binkd.conf

    Go to the binkd echo and request it.

    It looks like it strips all the leading 0's so you'd have to make some changes so it give you the last four characters.

    For me, it would be easier to create a BASH script and I am no
    programmer, except for some very basic scripts. D'Bridge has DBUTIL
    QNAME [address] but it puts it is a different format.

    1:214/22 translates to 00105Y.00M

    Ahhh... I am not that familiar with Nick's program.


    Thanks for the suggestion. It got me thinking about other programs I
    have used.


    Welcome...

    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    === MultiMail/Win32 v0.50
    --- SBBSecho 3.00-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From mark lewis@1:3634/12.73 to Ray Quinn on Fri Apr 28 10:21:16 2017

    On 2017 Apr 27 21:08:32, you wrote to All:

    Hello all!

    I am not a programmer. I am looking for a simple bash script to allow me
    to
    type in an FTN address, filename(s), and a connect flavo(u)r that
    generates
    a proper NNNNnnnn.REQ file for binkd. I realize that it is not that
    difficult to create the files necessary manually, using a
    programmers calculator (Windows 10 has one) to find the HEX address. I would like to have the script convert from decimal to hexadecimal.

    bash stuffs is pretty easy... the first hurdle to determine your main address for the default outbound directory... the others can then be easily handled... it is possible that this information may be taken from existing config files, though...

    another factor is if your mailer and tosser are running in 4D or 5D mode... in 4D, all outbound directories are based off of your outbound that is related to your main address... in 5D mode, outbounds for different FTNs can have their own names... if existing config files can be leveraged, then all the necessary information should already be available and a little math conversion is likely all that's necessary...

    NOTE: "main address" is your first listed address... all others are AKAs...

    you also have to determine if there's an existing flo file or not... if not, then creating it is easy... if one does exist, you have to modify it or at least touch it to update its time stamp... if you are sending a new file to the
    destination, you have to add it to the existing flo file...

    For example:

    Address: 12:345/678
    File: nodelist
    Flavor: n (normal)
    Generating /mail/out/fido.00c/015902a6.flo
    Generating /mail/out/fido.00c/015902a6.req

    this looks like you are asking for a script to just send file requests...

    Any programmers up for the task? It doesn't have to be fancy, use
    colors, etc. It could even use java. Deuce, echicken, DM...

    you asked for bash and i have something in bash but it will take me a little longer to get it cleaned up... i don't think i can post it in the echo because of line wrap... just the basic FTN address parsing and error detection is some 150+ lines... been up 24 hours... hope to have something for you later today...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... People who pun deserve to be drawn and quoted.
    ---
    * Origin: (1:3634/12.73)
  • From Ray Quinn@1:103/705 to mark lewis on Sat Apr 29 19:45:00 2017
    mark lewis wrote to Ray Quinn <=-

    bash stuffs is pretty easy... the first hurdle to determine your main address for the default outbound directory... the others can then be easily handled... it is possible that this information may be taken
    from existing config files, though...

    another factor is if your mailer and tosser are running in 4D or 5D mode... in 4D, all outbound directories are based off of your outbound that is related to your main address... in 5D mode, outbounds for different FTNs can have their own names... if existing config files can
    be leveraged, then all the necessary information should already be available and a little math conversion is likely all that's
    necessary...

    I run Synchronet/Linux. Using the existing binkd.conf file would also make using fileboxes easier.

    NOTE: "main address" is your first listed address... all others are AKAs...

    Understood. My main address is a Fidonet address, but not my only Fidonet address.

    you also have to determine if there's an existing flo file or not... if not, then creating it is easy... if one does exist, you have to modify
    it or at least touch it to update its time stamp... if you are sending
    a new file to the destination, you have to add it to the existing flo file...

    Makes sense.

    For example:

    Address: 12:345/678
    File: nodelist
    Flavor: n (normal)
    Generating /mail/out/fido.00c/015902a6.flo
    Generating /mail/out/fido.00c/015902a6.req

    this looks like you are asking for a script to just send file
    requests...

    That is exactly what I am looking for.

    you asked for bash and i have something in bash but it will take me a little longer to get it cleaned up... i don't think i can post it in
    the echo because of line wrap... just the basic FTN address parsing and error detection is some 150+ lines... been up 24 hours... hope to have something for you later today...

    Bash would be good for *NIX systems. It would be ideal if binkd did this natively, therefore working on all platforms.

    ... People who pun deserve to be drawn and quoted.

    Talking about a pun \/



    ---

    If the right side of the brain controls the left side of the
    body, then only left-handed people are in their right minds.

    ______
    , |[][]|
    ,__| ______| |
    ,__/__]|| ________ | D8 |
    |__!___!!`--'L_______\ |__________|() ___________
    "(_)[___]====(_)(_)=| \_(___________)_/__/=(_)===(_)~'

    73 de Ray Quinn W6RAY
    Visalia, CA USA DM06ii
    ...

    ... Ham radio operators do it with frequency!
    --- MultiMail/Win32 v0.50
    * Synchronet * US 99 BBS - Visalia, CA - bbs.quinnnet.org
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Tony Langdon@3:633/410 to Ray Quinn on Sat Apr 29 20:19:00 2017
    Ray Quinn wrote to Vk3jed <=-

    binkd -R 12:345/678 filename /path/to/binkd.conf

    That would be the ideal scenario. :)


    ... URA Redneck if people hear your car a long time before they see it.
    --- MultiMail/Win32 v0.49
    * Origin: Freeway BBS - freeway.apana.org.au (3:633/410)
  • From Tony Langdon@3:633/410 to mark lewis on Sun Apr 30 15:22:00 2017
    mark lewis wrote to Ray Quinn <=-

    you asked for bash and i have something in bash but it will take me a little longer to get it cleaned up... i don't think i can post it in
    the echo because of line wrap... just the basic FTN address parsing and error detection is some 150+ lines... been up 24 hours... hope to have something for you later today...

    I'd be interested to see this too, if possible.


    ... And, best of all, Fido people are the best of all!
    --- MultiMail/Win32 v0.49
    * Origin: Freeway BBS - freeway.apana.org.au (3:633/410)