• Ook! the descript.ion maintainer

    From Enric Lleal Serra@2:343/107.1 to All on Thu Aug 29 15:52:32 2024
    Hi guys,

    BBBS software natively implements the automatic and unattended adoption of files when they arrive through TIC distribution channels. If not, BBBS can adopt new files (out of TIC processes) in a manual and assisted manner, through the system's own menus in a local or telnet connection.

    However, how do you adopt files collections, serialized files, sets of independent files by topic, etc?

    I've just finished ook.sh, a bash script that should respond to this need, as an interactive support tool for a BBBS SysOp. Rudimentary, but useful.

    ook.sh generates and/or maintains description.ion files from the FILE_ID.DIZ description of ZIP files pointed at it, in a static or recursive location.

    You simply put the zip file on your desired location, and ook.sh will take care of it.

    ook.sh needs the unzip, grep, file and stat utilities to be available on the system in order to perform the necessary operations. I've tested it in a bash shell, so if you use another shell it may need to be adjusted accordingly. This could apply to Windows WSL environments making it possible to run this script on a BBBS installation over MS Windows. But I'm not sure as I don't use Windows.

    I use the file command to ensure that a processable archive is indeed a ZIP, checking if the output of the command contains 'Zip archive data'.

    For each ZIP file, the script checks if it is already registered in its description.ion. If it is, skip its processing. If not, extract3 the contents of the file_id.diz (case-insensitive) and include it in the description.ion, on the same line as the name of the ZIP file, replacing line breaks with @n (encoding that BBBS interprets as a line break).

    If the -r parameter is specified, the script recursively processes all subdirectories. Otherwise, only process the current directory.

    If the -s parameter is specified followed by the name of a ZIP archive, only that archive is processed.

    At the end of its execution, the script displays a summary with the total number of new ZIP files processed and the total size in bytes of these files.

    Summarizing:

    Recursive directory mode: ./ook.sh -r
    Specific ZIP mode: ./ook.sh -s archive.zip
    Current directory mode (no recursion): ./ook.sh

    Check it out, guys. Maybe it will be useful to someone else besides me.

    https://shipyard.thefreebay.net/eotb/bash-description-ook.git

    A reveure!!
    Enric

    --- BBBS/Li6 v4.10 Toy-7
    * Origin: Pursuit Special - The last of the V8 Interceptors (2:343/107.1)
  • From Janis Kracht@1:261/38 to Enric Lleal Serra on Tue Sep 17 07:47:26 2024
    Hi Enric!

    Sorry I missed your message until now, this sounds interesting, thank you for your work :)

    [...]
    I've just finished ook.sh, a bash script that should respond to this need, as an interactive support tool for a BBBS SysOp. Rudimentary, but useful.

    ook.sh generates and/or maintains description.ion files from the FILE_ID.DIZ description of ZIP files pointed at it, in a static or recursive location.


    https://shipyard.thefreebay.net/eotb/bash-description-ook.git

    Thank you again,
    Janis

    --- BBBS/Li6 v4.10 Toy-6
    * Origin: <<Prism bbs (1:261/38)
  • From Enric Lleal Serra@2:343/107.1 to Janis Kracht on Tue Sep 24 14:49:08 2024
    Hi Janis,

    Sorry I missed your message until now, this sounds interesting, thank you for your work :)

    You can try the Ook companion: the file_id.diz editor... ;-)

    https://shipyard.thefreebay.net/eotb/gui-diz-editor.git

    A reveure!!
    Enric



    --- BBBS/Li6 v4.10 Toy-7
    * Origin: Pursuit Special - The last of the V8 Interceptors (2:343/107.1)