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: | altere |
---|---|
Location: | Houston, TX |
Users: | 60 |
Nodes: | 4 (0 / 4) |
Uptime: | 18:31:52 |
Calls: | 516 |
Files: | 7,037 |
Messages: | 288,640 |