• Re: Posting Text to Bases

    From Avon@21:1/101 to Jon Justvig on Wednesday, November 29, 2017 06:31:53
    On 11/28/17, Jeffs pondered and said...

    Hello Jon,


    On 11/27/17, Jon Justvig said the following...

    g00r00,

    Any thoughts of adding a utility to add a text file to an existing sub-board from the command line?

    Isn't that already possible using MUTIL and the editing the [PostTextFiles] part of mutil.ini?


    Hi Jon...

    Jeff is correct, have a look in the mutil.ini example and you will find a function and stanza to do just that. I'd suggest you create a separate .ini file to call when you want to use it. I do this for when I'm posting game results to the network in the FSX_BOT echo.

    [snip]

    [PostTextFiles]

    ; Total number of text files to be posted. For each file there needs to
    ; be a file definition as show below.

    totalfiles = 1

    ; This defines one file which will be posted to the message base. Each
    ; file should be prefixed with file# where # is a number from 1 to
    ; totalfiles.
    ;
    ; The delfile option (if true) will remove the filename after the message
    ; is posted. The baseidx is the permanent index of the message base to
    ; post the message into (shown as Index at the top of the message base
    ; editor in Mystic's configuration. Address is the echomail destination
    ; address

    file1_name = c:\galactic\ibbs_scores.asc
    file1_baseidx = 22
    file1_from = fsxNet HUB
    file1_to = All
    file1_subj = Galactic Dynasty Scores
    file1_addr = 21:1/100
    file1_delfile = false

    [snip]

    Be sure to have PostTextFiles set to true in the [General] stanza also.

    [snip]

    [General]

    ; list of functions to perform on startup

    PostTextFiles = true

    [snip]

    Hope that helps :)

    Best, Paul

    --- Mystic BBS v1.12 A36 2017/11/26 (Windows/32)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Jeffs@21:1/128.3 to Jon Justvig on Tuesday, November 28, 2017 13:50:44
    Hello Jon,

    On 11/29/17, Avon said the following...

    Jeff is correct, have a look in the mutil.ini example and you will find a function and stanza to do just that. I'd suggest you create a separate .ini file to call when you want to use it. I do this for when I'm
    posting game results to the network in the FSX_BOT echo.

    Paul is correct also. <g> I maintain an orginal mutil.ini file then edit the particular section that relates to the task that I wish MUTIL to perform. I then save the edited mutil.ini file to a new file name that is associated
    with the task to be performed such as import.ini, export.ini, merge.ini, Etc.


    Jeff

    --- Mystic BBS v1.12 A36 2017/11/26 (Linux/64)
    * Origin: New Mystic BBS (21:1/128.3)
  • From Jon Justvig@21:1/154 to Avon on Tuesday, November 28, 2017 13:03:01
    Avon,

    On 11/29/17, Avon said the following...

    Jeff is correct, have a look in the mutil.ini example and you will find a function and stanza to do just that. I'd suggest you create a separate .ini file to call when you want to use it. I do this for when I'm
    posting game results to the network in the FSX_BOT echo.

    Good deal. I took a look at the default mutil.ini and found it. That is a good idea to create a seperate .ini file for posting to an echo that way it
    is more flexible which days and times the message actually goes out. Thanks for that.

    Hope that helps :)

    It does... I appreciate it.

    Sincerely,
    Jon Justvig

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/32)
    * Origin: Raiders Inc BBS -- vintagebbsing.com (21:1/154)
  • From g00r00@21:1/108 to Jon Justvig on Tuesday, November 28, 2017 22:56:27
    Good deal. I took a look at the default mutil.ini and found it. That
    is a good idea to create a seperate .ini file for posting to an echo
    that way it is more flexible which days and times the message actually goes out. Thanks for that.

    Yep that was the idea behind MUTIL. You can sort of "create your own utilities" using MUTIL .ini files by saving them as different files. You don't even need the extension on the command line, so it sort of feels like your own custom commands. If you make msgpack.ini then you just run "mutil msgpack"
    and have it do whatever you want.

    Or put it all into one .ini and do everything. Its all up to you :)

    --- Mystic BBS v1.12 A36 2017/11/27 (Windows/64)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)