Just a sample of the Echomail archive
[ << oldest | < older | list | newer > | newest >> ]
|  Message 2655  |
|  Enric Lleal Serra to All  |
|  Ook! the descript.ion maintainer  |
|  29 Aug 24 15:52:32  |
 MSGID: 2:343/107.1 6c94c497 TZUTC: 0100 CHRS: LATIN-1 2 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) SEEN-BY: 10/0 1 90/1 102/401 103/1 705 105/81 106/201 124/5016 129/305 SEEN-BY: 153/757 7715 154/10 30 203/0 214/22 218/0 1 215 601 700 720 SEEN-BY: 218/810 840 860 870 880 930 221/0 6 226/30 227/114 229/110 SEEN-BY: 229/114 206 317 426 428 470 550 664 700 240/1120 5832 266/512 SEEN-BY: 280/464 5003 282/1038 291/111 292/854 8125 301/1 320/219 SEEN-BY: 322/757 341/66 200 234 342/200 343/107 396/45 423/120 460/58 SEEN-BY: 467/888 633/280 712/848 770/1 902/26 5019/40 5020/400 5075/35 PATH: 343/107 341/66 280/464 103/705 218/700 229/426 |
[ << oldest | < older | list | newer > | newest >> ]