Subj : Re: GoldMine - Connecting from Synchronet BBS To : Gamgee From : Digital Man Date : Wed Oct 30 2024 11:01:35 Re: Re: GoldMine - Connecting from Synchronet BBS By: Gamgee to Digital Man on Wed Oct 30 2024 10:46 am > -=> Digital Man wrote to Gamgee <=- > > > If I define either of those methods as the command line for my external > > event/door, it works as expected, and produces this output on the > > Goldmine site as the current user: [PAL]Gamgee > > > If I run either of those command lines while sitting at a prompt on my > > BBS, using the ;EXEC command and then typing the command line, I get > > this output on the site: [PAL]%A > > DM> That's expected. I just committed a trivial change to str_cmds.js so > DM> that it *will* now expand command-line specifiers that you pass on the > DM> command-line using the ;exec sysop command, so that should work if you > DM> update. > > OK, cool, thank you. > > > So for some reason the alias variable is not being evaluated when run > > "manually". > > > Is the case of the %a or %A significant? Both show as "%A" on the > > output if that means anything. > > DM> It sounds like you're using a command shell that is converting the > DM> input to all-caps. Here's how it works for me using default.js and the > DM> updated str_cmds.js (and demonstrates the difference between %a and > DM> %A): > > DM> = Main = 0:07:22 [4] fsxNet [11] FSX BBS: ;exec > DM> Command-line: ?showargs %a > DM> argc = 1 > DM> argv[0] = 'Digital Man' > > DM> = Main = 0:07:56 [4] fsxNet [11] FSX BBS: ;exec > DM> Command-line: ?showargs %A > DM> argc = 2 > DM> argv[0] = 'Digital' > DM> argv[1] = 'Man' > > DM> showargs.js is just this (for test/demo purposes): > DM> print("argc = " + argc); > DM> for(i=0;i DM> printf("argv[%d] = '%s'\r\n",i,argv[i].toString()); > > Ahhh, OK, thank you again. For a single-word alias I'll just use the > lowercase one then. I gave you 2 solutions, one using %A and one using %a: ?rlogin somehost "-s[TAG]%A" and ?rlogin somehost -s [TAG] -s %a Hopefully you'd use the same solution (pick one, either should work) for all aliases, regardless of how many words are in the alias. > As for my command shell, it is a modified form of default.bin (src). > The only changes though are that some commands have been disabled, and > some modified to use the DDMsgReader/DDAreaChooser mods. No changes > made to anything related to case/caps. Old versions of default.src converted string input (after the ;) to uppercase. That was changed (to leave original case) 4 years ago: https://gitlab.synchro.net/main/sbbs/-/commit/d62930c3107a9cc15a5aa83e4a6a Your modified copy of default.src must be at least 4 years old in that case. If you just type ";EXEC" and hit enter, it should prompt you for the command to execute and allow lowercase input. > The display on the remote > website that always showed the capitalized "A" might have been something > on that end, I would guess. We're talking about terminal, not website, but no, it has to do with your command shell. > Anyhow, things are all good now with the > command line for opening that game server door. Appreciate it. Cool. And in the future, you'll find quicker, more accurate answers to Synchronet support questions in the official support channels. -- digital man (rob) Steven Wright quote #4: 99% of lawyers give the rest a bad name. Norco, CA WX: 64.9øF, 54.0% humidity, 1 mph SW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (21:1/183) .