• -j and REP packets.

    From Shawn Highfield@1:229/452.1 to All on Thu Jul 26 06:52:28 2007
    Hello,

    With the recent discussion about REP uploading not working with Mtel I've thought of an idea that I almost have working.

    1) I wrote a quick door that allows you to upload a REP packet to a directory.
    2) I messed around with a -j switch to build a batch file that has all the command lines
    needed for uploading said rep file. (You currently tell the upload door your password and
    it generates the .cmd file on the fly)

    My question is, what's the best way to deal with this? I was thinking (And you batch file gawds
    please help me here) in the runbbsx.cmd I want to check to see if a file exists (Say c:\temp\tinysbbs.rep) and if so run the .cmd file that has all the -j keystrokes in it.

    Any ideas?

    --
    Shawn Highfield.
    http://t1ny.kicks-ass.org:9080/jamadd.html Quick access to FIdonet via NNTP!

    --- Unison/1.7.9
    * Origin: Tiny's BBS - http://t1ny.kicks-ass.org:9080 - Back/2! (1:229/452.1)
  • From Mvan Le@1:343/41 to Shawn Highfield on Fri Jul 27 21:05:36 2007
    My question is, what's the best way to deal with this?
    I was thinking (And you batch file gawds
    please help me here) in the runbbsx.cmd I want to check
    to see if a file exists
    (Say c:\temp\tinysbbs.rep) and if so run the .cmd file
    that has all the -j keystrokes in it.

    =========================================
    if exist c:\temp\tinysbbs.rep runbbsx.cmd =========================================

    --- Maximus/2 3.01
    * Origin: Top Hat 2 BBS (1:343/41)
  • From Shawn Highfield@1:229/452.1 to Mvan Le on Sat Jul 28 07:02:44 2007
    On 2007-07-27 21:05:36 -0400, "Mvan Le -> Shawn Highfield" <1:343/41> said:

    SH> (Say c:\temp\tinysbbs.rep) and if so run the .cmd file
    SH> that has all the -j keystrokes in it. =========================================
    if exist c:\temp\tinysbbs.rep runbbsx.cmd =========================================

    From runbbs1.cmd

    :loop
    maxp -n1 -w -p%port% -b38400 -s38400 -xz
    if errorlevel ...
    if errorlevel 5 goto aftercall

    :aftercall
    if exist c:\max\olr\node01\tinysbbs.rep c:\max\doors\trep\upload.cmd

    Will that work? the one thing I can't do is write batch files. ;) Basically the trep
    door accepts the upload of the rep file, and creates upload.cmd which looks like
    this:

    maxp.exe "-j{user name};y;{password};|;|;n;|;n;m;o;u;c:\max\doors\trep\tinysbbs.rep;|;g;|;"

    I'm
    still tweaking the above as it seems to fail on the filename of the uploaded file sometimes,
    and other times it works.

    I think I'm also going to put a quick login button in the first mecca screen that blasts you
    right to the QWK menu to cut down on errors on the above mess to log in. ;)

    --
    Shawn Highfield.
    http://t1ny.kicks-ass.org:9080/jamadd.html Quick access to FIdonet via NNTP!

    --- Unison/1.7.9
    * Origin: Tiny's BBS - http://t1ny.kicks-ass.org:9080 - Back/2! (1:229/452.1)
  • From Mvan Le@1:343/41 to Shawn Highfield on Sun Jul 29 06:40:58 2007
    :aftercall
    if exist c:\max\olr\node01\tinysbbs.rep c:\max\doors\trep\upload.cmd

    Will that work? the one thing I can't do is write

    I think so.

    still tweaking the above as it seems to fail on the
    filename of the uploaded file sometimes,
    and other times it works.

    I think I'm also going to put a quick login button in
    the first mecca screen that blasts you
    right to the QWK menu to cut down on errors on the
    above mess to log in. ;)

    You could simplify by creating a restricted user eg. "QWKUpload" and assign it a "QWKUpload" privilege that uses a LoginFile.

    Access.Ctl:
    ========================================
    Access QWKUpld
    Level 1
    Time 10
    Cume 8440
    LoginFile Misc\QwkUpld
    Flags UploadAny Hangup
    End Access
    ========================================

    QwkUpld.mec:
    ========================================
    menu_cmd Msg_Upload_QWK
    [Key_Poke]c:\max\doors\trep\tinysbbs.rep ========================================

    upload.cmd:
    ========================================
    maxp.exe -n0 -k -j"QwkUpld;y;{password}" ========================================

    Then you can run upload.cmd after each upload, which would allow multiple uploads per session after the latest *.rep file is cleared. It would also negate additional input from the user eg. passwords.

    Nb. This is a concept only.

    --- Maximus/2 3.01
    * Origin: Top Hat 2 BBS (1:343/41)
  • From Shawn Highfield@1:229/452.1 to Mvan Le on Sun Jul 29 12:31:00 2007
    On 2007-07-29 06:40:58 -0400, "Mvan Le -> Shawn Highfield" <1:343/41> said:

    SH> if exist c:\max\olr\node01\tinysbbs.rep c:\max\doors\trep\upload.cmd
    SH> Will that work? the one thing I can't do is write
    I think so.

    It does.

    You could simplify by creating a restricted user eg. "QWKUpload" and
    assign it a "QWKUpload" privilege that uses a LoginFile.

    I cheated and just added a "R" hidden menu on the first Hit Enter prompt which
    jumps Max
    right to the Qwkupload routine.

    upload.cmd:
    ========================================
    maxp.exe -n0 -k -j"QwkUpld;y;{password}" ========================================
    Then you can run upload.cmd after each upload, which would allow
    multiple uploads per session after the latest *.rep file is cleared. It
    would also negate additional input from the user eg. passwords.

    Now this is interesting... I'm going to check into this.

    --
    Shawn Highfield.
    http://t1ny.kicks-ass.org:9080/jamadd.html Quick access to FIdonet via NNTP!

    --- Unison/1.7.9
    * Origin: Tiny's BBS - http://t1ny.kicks-ass.org:9080 - Back/2! (1:229/452.1)