open
https://gitlab.synchro.net/main/sbbs/-/issues/850
If you don't follow expected order, it will prompt for things that you have provided in
the command line like "From User:"
[sbbs@vmi1943160 notes]$ cat postmessage
usage: postmsg.js [-option] [-option] [...] <sub-code>
<sub-code> must be a valid sub-board (msgbase) internal code
options:
-i<filename> import text from filename rather than stdin
-t<name> set 'to' user name
-n<addr> set 'to' netmail address
-u<number> set 'to' user number
-f<name> set 'from' user name
-e<number> set 'from' user number
-s<subject> set 'subject'
-d use default values (no prompt) for to, from, and subject
Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name")
jsexec postmsg.js -i/home/sbbs/ctrl/tl-intro.txt -tAll -e1 "-sToo Lazy BBS" LOCAL-NOTICES
jsexec postmsg.js -tAll -e1 -i/home/sbbs/ctrl/tl-intro.txt "-sToo Lazy BBS" LOCAL-NOTICES
jsexec postmsg.js -tAll "-sToo Lazy BBS" -e1 -i/home/sbbs/ctrl/tl-intro.txt LOCAL-NOTICES
jsexec postmsg.js -tAll -fAmessyroom "-sToo Lazy BBS" -i/home/sbbs/ctrl/tl-intro.txt LOCAL-NOTICES
This final command follows the arguments as listed in the order of the case statements.
The help output does not list the arguments in the same order, as can be seen in my listed
attempts.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net