I'm running a BBS. A software I ported from DOS to Linux. Impulse BBS. I'm having problems with the message base files. The problem is, it deletes the .BRD
files, for some reason, and that halts the system. And crashes the BBS. I need to figure out a way to create those .BRD
files when missing. Here's a script I wrote:
#!/bin/bash
inotifywait --daemon --outfile /home/imp/imp/test.log -m /home/imp/imp/msgs -e create
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
for name in /home/imp/imp/msgs/*.MIX; do
touch "${name}.BRD"
done
done
It doesn't appear to be working, though. It does not actually touch
the .BRD
file(s). These .BRD
files can be 0-byte length in size. I'm using inotifywait
because it seems to be the best way to address this situation. I have other scripts that utilitze inotifywait
, and they suit my needs perfectly.
touch AGN_SYS.BRD
(for example) would work. They are message base files for a BBS system..BRD
and.MIX
files get created in pairs (e.g.,foo.BRD
andfoo.MIX
), and that sometimes, … (Cont’d)