• Path to dropfile

    From Chad Adams@1:19/37 to All on Mon Sep 5 03:16:43 2022
    So ow can I specify the path to the temp dir for the door32.ys file in a menu cmd?

    I tried /opt/mystic/temp|ND/door32.sys but that doesnt work.

    Any idea?

    --Nugax
    The ByteXchange BBS
    TBX Software

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A48 2022/07/15 (Linux/64)
    * Origin: The ByteXchange BBS | bbs.thebytexchange.com (1:19/37)
  • From Jay Harris@1:229/664.1 to Chad Adams on Mon Sep 5 07:38:50 2022
    Quoting Chad Adams to All <=-

    So ow can I specify the path to the temp dir for the door32.ys file
    in a menu cmd? I tried /opt/mystic/temp|ND/door32.sys
    but that doesnt work.

    Any idea?

    Try %Pdoor32.sys if you're speciying it on the data line:

    Command | (D3) Exec DOOR32 program
    Data | /path/to/door/mydoor %Pdoor32.sys


    Or you could also do something like:

    Command | (D3) Exec DOOR32 program
    Data | /path/to/door/mydoor.sh %N


    [mydoor.sh]
    #!/bin/bash
    cd /path/to/door
    ./mydoor /opt/mystic/temp$1/door32.sys
    [/mydoor.sh]


    From http://wiki.mysticbbs.com/doku.php?id=menu_commands#external_doors:

    %# = User's unique ID
    %A = User's real name (spaces are replaced by an underscore)
    %B = User's real name (with spaces)
    %C = The current user's codepage (CP437 or UTF8) (added 1.12 A39)
    %H = The current socket handle (added 1.12 A34)
    %N = The current node number (added 1.12 A34)
    %P = Node's temp directory where drop files are stored (w/ trailing slash)
    %R = User's handle (with spaces)
    %T = User's time left in minutes
    %U = User's handle (spaces are replaced with an underscore _)


    Jay


    ... Coffee has a rough time in our house. It gets mugged every morning!
    --- Blue Wave/386 v2.30
    * Origin: Northern Realms | tg.nrbbs.net | 289-424-5180 (1:229/664.1)
  • From Chad Adams@1:19/37 to All on Mon Sep 5 18:39:47 2022
    Thanks!



    Hello, Jay Harris.
    On 9/5/22 2:38 AM you wrote:

    Quoting Chad Adams to All <=- CA> So ow can I specify the path
    to the temp dir for the door32.ys file CA> in a menu cmd? I tried /opt/mystic/temp|ND/door32.sys CA> but that doesnt work. CA> Any
    idea? Try %Pdoor32.sys if you're speciying it on the data line:
    Command | (D3) Exec DOOR32 program Data | /path/to/door/mydoor %Pdoor32.sys Or you could also do something like: Command | (D3)
    Exec DOOR32 program Data | /path/to/door/mydoor.sh %N [mydoor.sh] #!/bin/bash cd /path/to/door ./mydoor /opt/mystic/temp$1/door32.sys [/mydoor.sh] From http://wiki.mysticbbs.com/doku.php?id=menu_commands#external_doors:
    %# = User's unique ID %A = User's real name (spaces are replaced by
    an underscore) %B = User's real name (with spaces) %C = The current
    user's codepage (CP437 or UTF8) (added 1.12 A39) %H = The current
    socket handle (added 1.12 A34) %N = The current node number (added
    1.12 A34) %P = Node's temp directory where drop files are stored (w/ trailing slash) %R = User's handle (with spaces) %T = User's time
    left in minutes %U = User's handle (spaces are replaced with an
    underscore _) Jay .. Coffee has a rough time in our house. It gets
    mugged every morning! --- Blue Wave/386 v2.30 * Origin: Northern
    Realms | tg.nrbbs.net | 289-424-5180 (1:229/664.1)

    --
    Best regards!
    Posted using Hotdoged on Android

    --- Mystic BBS/NNTP v1.12 A48 2022/07/15 (Linux/64)
    * Origin: The ByteXchange BBS | bbs.thebytexchange.com (1:19/37)