Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
util:smbutil [2010/02/24 15:35] – created digitalman | util:smbutil [2022/04/03 03:53] (current) – [Syntax] Added V, D, u, L and U to match smbutil -h output nelgin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SMBUTIL ====== | + | ====== SMBUTIL |
+ | |||
+ | The Synchronet Message Base Utility ('' | ||
+ | |||
+ | The '' | ||
+ | |||
+ | smbutil maintenance and/or packing should be done using an // | ||
+ | |||
+ | **Note**: | ||
+ | The '' | ||
+ | |||
+ | =====Usage===== | ||
+ | |||
+ | smbutil operates on message base files only. It does not read Synchronet configuration files so therefore will not automatically know where to find the message base files (i.e. by default in '' | ||
+ | - The message base files (e.g. ' | ||
+ | - You specify the full path to the message base file(s) on the SMBUTIL command-line | ||
+ | |||
+ | **WARNING**: | ||
+ | All BBS nodes should be offline when using smbutil with the pack command! | ||
+ | |||
+ | ==== Syntax ==== | ||
+ | |||
+ | smbutil [-opt] [-opt] cmd [cmd] < | ||
+ | |||
+ | ===Commands=== | ||
+ | |||
+ | One or more commands ('' | ||
+ | |||
+ | < | ||
+ | l[n] = list msgs starting at number n | ||
+ | r[n] = read msgs starting at number n | ||
+ | x[n] = dump msg index at number n | ||
+ | v[n] = view msg headers starting at number n | ||
+ | V[n] = view msg headers starting at number n verbose | ||
+ | i[f] = import msg from text file f (or use stdin) | ||
+ | e[f] = import e-mail from text file f (or use stdin) | ||
+ | n[f] = import netmail from text file f (or use stdin) | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | p[k] = pack msg base (k specifies minimum packable Kbytes) | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Commands without values may be concatenated (e.g. '' | ||
+ | |||
+ | ===Options=== | ||
+ | |||
+ | Zero or more options ('' | ||
+ | |||
+ | < | ||
+ | -c[m] = create message base if it doesn' | ||
+ | -a = always pack msg base (disable compression analysis) | ||
+ | -i = ignore dupes (do not store CRCs or search for duplicate hashes) | ||
+ | -d = use default values (no prompt) for to, from, and subject | ||
+ | -l = LZH-compress message text | ||
+ | -o = print errors on stdout (instead of stderr) | ||
+ | -p = wait for keypress (pause) on exit | ||
+ | -! = wait for keypress (pause) on error | ||
+ | -b = beep on error | ||
+ | -C = continue after some (normally fatal) error conditions | ||
+ | -t<s> = set ' | ||
+ | -n<s> = set ' | ||
+ | -u<s> = set ' | ||
+ | -f<s> = set ' | ||
+ | -e<s> = set ' | ||
+ | -s<s> = set ' | ||
+ | -z[n] = set time zone (n=min +/- from UT or ' | ||
+ | -# = set number of messages to view/list (e.g. -1) | ||
+ | </ | ||
+ | |||
+ | ====Examples==== | ||
+ | |||
+ | === Maintenance === | ||
+ | |||
+ | for maintenance and packing (100k or more per sub): | ||
+ | |||
+ | smbutil mp100 / | ||
+ | |||
+ | for maintenance only (self-packing sub-boards): | ||
+ | |||
+ | smbutil m / | ||
+ | |||
+ | |||
+ | When using the pack command, smbutil will check to see if it is necessary for you to pack your message base, if you want to skip this checking and have it unconditionally pack the message base (useful when attempting to repair a corrupted message base), you should add the ' | ||
+ | |||
+ | smbutil -a p / | ||
+ | |||
+ | The maintenance and pack commands are likely all that you will ever need to use smbutil for. | ||
+ | |||
+ | === Repair === | ||
+ | |||
+ | If you have a message base that is severely corrupted (e.g. '' | ||
+ | |||
+ | smbutil -C Rcs / | ||
+ | |||
+ | This command will instruct smbutil to: | ||
+ | -continue upon error when opening a corrupted message base | ||
+ | -re-initialize the SMB/status headers of the message base | ||
+ | -change/ | ||
+ | -display the status header | ||
+ | |||
+ | After repairing a message base in this manner, you may still need to run '' | ||
+ | |||
+ | === Auto-post === | ||
+ | |||
+ | smbutil may be used for automated message posting (or email sending), by using the '' | ||
+ | |||
+ | smbutil -d i/ | ||
+ | |||
+ | You can override the default to/ | ||
+ | |||
+ | smbutil -tAll " | ||
+ | |||
+ | **Note**: | ||
+ | Although message importing/ | ||
- | FIXME | ||
===== See Also ===== | ===== See Also ===== | ||
- | * [[:util: | + | * [[util:index|Utilities]] |
+ | * [[util: | ||
+ | * [[util: | ||
+ | |||
+ | {{tag> |