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)