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: | Weed Hopper |
|---|---|
| Location: | Clearwater, FL |
| Users: | 16 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 18:37:20 |
| Calls: | 133 |
| Files: | 50,534 |
| D/L today: |
107 files (17,165K bytes) |
| Messages: | 323,323 |