Daryl Stout wrote to All <=-
I am trying to get an autopost routine set up with SMBUTIL, but I can not get the command structure right.
I want to use my first and last name in the message (since some
networks require a full name), plus importing the data from an external textfile, and posting it to a particular group.
A fellow Sysop had sent me his batchfile that he uses, but I can not
get it to work right on mine. First, the syntax was obviously wrong, as
it said a certain area didn't exist. Then, when I changed a parameter,
it appeared to work, but below it, it said "empty", and nothing was posted.
Any assistance would be greatly appreciated. However, with stormy weather forecast in central Arkansas for the next few days, there's no rush on a reply...because if storms develop or threaten the area, I
shut down and unplug, to avoid a lightning strike taking everything
out.
I am trying to get an autopost routine set up with SMBUTIL, but I can not get the command structure right.
I want to use my first and last name in the message (since some networks require a full name), plus importing the data from an external textfile, and posting it to a particular group.
A fellow Sysop had sent me his batchfile that he uses, but I can not get it to work right on mine. First, the syntax was obviously wrong, as it said a certain area didn't exist. Then, when I changed a parameter, it appeared to work, but below it, it said "empty", and nothing was posted.
Any assistance would be greatly appreciated.
There are two text files I create. One is the actual text of what you want BM>posted in the msg itself. The other is a "header" file. The header file BM>should be structered as such:
(To:)
(From:)
(Subject:)
You'll not be using anything within the quotes so it would actually look lik BM>this:
All
Daryl Stout
Here is my subject matter
Save that as a txt file. I usually give them a .HDR extension.
Now, the SMBUTIL command:
smbutil ic:\sbbs\nhl\nhlbrac.txt c:\sbbs\data\subs\2nhl.shd < BM>c:\sbbs\exec\nhlbrac.hdr
^^^ Heade
file
^^^ Sub you want it posted in
^^^ Name of file you want imported
^^^ "i" sysop rights
That should do it for you...
I would need to see the batch file to provide any meaningful assistance.
Rob,
I would need to see the batch file to provide any meaningful assistance.
@echo off
c:
set sbbsctrl=c:\sbbs\ctrl
set sbbsnode=1
cd\sbbs\exec
smbutil i\newbbswk\testmsg.txt -i -tALL -fDaryl_Stout -s"Test Message: c:\sbbs\data\subs\local-lcltest.shd
I created an NA file for each message board, as it was easier to import things that way.
When I originally tried to post something, it would say "Empty". So, I posted a message in the areas first to "activate them".
The batchfile did work, once it had a "starter message".
Daryl Stout wrote to BILL MCGARRITY <=-
There are two text files I create. One is the actual text of what you wantik
posted in the msg itself. The other is a "header" file. The header file
should be structered as such:
(To:)
(From:)
(Subject:)
You'll not be using anything within the quotes so it would actually look
this:eade
All
Daryl Stout
Here is my subject matter
Save that as a txt file. I usually give them a .HDR extension.
Now, the SMBUTIL command:
smbutil ic:\sbbs\nhl\nhlbrac.txt c:\sbbs\data\subs\2nhl.shd <
c:\sbbs\exec\nhlbrac.hdr
^^^
file
^^^ Sub you want it posted in
^^^ Name of file you want imported
^^^ "i" sysop rights
That should do it for you...
Thanks...appreciate it much.
Two other notes...
1) I noted that I needed a starter message in the area FIRST before SMBUTIL would work.
2) I never did hear back from the SportNet coordinator.
@echo off
c:
set sbbsctrl=c:\sbbs\ctrl
set sbbsnode=1
cd\sbbs\exec
smbutil i\newbbswk\testmsg.txt -i -tALL -fDaryl_Stout -s"Test Message: c:\sbbs\data\subs\local-lcltest.shd
There apears to be a missing '"' character.
And if you want your "from" name to be "Daryl Stout" instead of "Daryl_Stout DM>just use quotes, like so on the command-line (verbatim):
"-fDaryl Stout"
Adding the -c option would do the same thing (create the base if it doesn't DM>exist).
1) I noted that I needed a starter message in the area FIRST before SMBUTIL would work.
Ahhh.. ok. Never knew that.
I was just thinking of that when I posted the message to you. I haven't hea BM>from Eric so I'll get things processed on my end.
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 333 |
Nodes: | 10 (0 / 10) |
Uptime: | 146:31:31 |
Calls: | 581 |
Messages: | 237921 |