smbutil -tAll -f"US 99 File Ticker" -s"New Files at US 99 BBS Today" i/sbbs/text/us99newfiles.txt /sbbs/data/subs/net214214test.shd
(^These two lines are actually one)
postmsg.js is the preferred method of adding messages to a message base these days, but the smbutil method should still work.
On a related note: (Probably not really Synchronet specific) Where would I find the proper language to add to the script so as to not create the message should there be no new files listed in the time frame, in this case - 1 day? I don't wish to send out an empty message with just the header, date, and footer.
Re: New Files Announcements w/SBBS
By: Ray Quinn to Digital Man on Sun Feb 06 2022 01:05 pm
On a related note: (Probably not really Synchronet specific) Where
would I find the proper language to add to the script so as to not
create the message should there be no new files listed in the time
frame, in this case - 1 day? I don't wish to send out an empty
message with just the header, date, and footer.
https://www.geeksforgeeks.org/shell-script-to-measure-size-of-a-file/
You probably want to store the file size (using stat or wc) in a
script variable and then compare it to 0.
| Sysop: | Gate Keeper |
|---|---|
| Location: | Shelby, NC |
| Users: | 820 |
| Nodes: | 20 (0 / 20) |
| Uptime: | 177:34:38 |
| Calls: | 13,718 |
| Calls today: | 5 |
| Files: | 5,294 |
| D/L today: |
3 files (104K bytes) |
| Messages: | 621,890 |