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: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 86:36:35 |
Calls: | 7,895 |
Calls today: | 1 |
Files: | 12,968 |
Messages: | 5,792,010 |