sQLux Detection
-
- Font of All Knowledge
- Posts: 4029
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
sQLux Detection
Hi,
I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.
If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.
If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
Regards,
Derek
Derek
Re: sQLux Detection
If you want a non-uqlx-specific command, you can try to OPEN the "pty" device - if it works, you're likely on uqlx/sQlux.Derek_Stewart wrote:Hi,
I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.
If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
- XorA
- Site Admin
- Posts: 1381
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux Detection
That does not work on all platforms though (windows does not have PTY).tofro wrote:If you want a non-uqlx-specific command, you can try to OPEN the "pty" device - if it works, you're likely on uqlx/sQlux.Derek_Stewart wrote:Hi,
I use SMSQ/E in QPC2, SMSQmulator and sQLux using the same QLWA container, so the boot file selects the extenstions to be loaded, based on the VER$ being equal to 'HBA' and the SMSQ/E MACHINE function.
If sQLux is running, I use the UQLX_RELEASE$ to load sQLux extensions, is there a better way to detect if sQLux is running?
- XorA
- Site Admin
- Posts: 1381
- Joined: Thu Jun 02, 2011 11:31 am
- Location: Shotts, North Lanarkshire, Scotland, UK
Re: sQLux Detection
Didnt someone somewhere else mention an extension where you can do
EXISTS UQLX_RELEASE$
To test for existence with still being generic?
EXISTS UQLX_RELEASE$
To test for existence with still being generic?
-
- Font of All Knowledge
- Posts: 4029
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: sQLux Detection
Yes that could be done, but I would have to load DJTK.
The PTY idea, could work, since I do not use Windows.
My current solution of testng UQLX_RELEASE$ for string. a null string wod mean it is not sQLux or UQLX.
The reason for this, SMSQ/E uses the lastest version of QPAC2, MENU_REXT, SYSMON. But sQLux running Minerva, can not run the latest versions of the software.
Regards,
Derek
Derek
Re: sQLux Detection
Theres also FINDNAME% at Knoware.no, a single command toolkit that does the same. You can also check for the existence of toolkit extensions from S*BASIC using the example code shown there; ie no toolkit involved.Derek_Stewart wrote:Yes that could be done, but I would have to load DJTK. <>
Per
dont be happy. worry
- ?
dont be happy. worry
- ?
Re: sQLux Detection
There are also several others, like "ISIT" from IDIS SE.
A clever way for procedures is in one of Steve Jones (SideWinder) program disks: An MC utility, which converts a resident MC procedure into an MC function. Say, to convert "OUTL" into "F_OUTL" which generates ERR.NI as a result, if QPTR is not present.
I can look on my disks to find it (hopefully).
A clever way for procedures is in one of Steve Jones (SideWinder) program disks: An MC utility, which converts a resident MC procedure into an MC function. Say, to convert "OUTL" into "F_OUTL" which generates ERR.NI as a result, if QPTR is not present.
I can look on my disks to find it (hopefully).
4E75 7000
Re: sQLux Detection
The point was if he doesnt like to load a whole toolkit for just one command.RalfR wrote:There are also several others, like "ISIT" from IDIS SE.
Clever if the command doesnt exist, but perhaps not so much if it does..RalfR wrote:A clever way for procedures is in one of Steve Jones (SideWinder) program disks: An MC utility, which converts a resident MC procedure into an MC function. Say, to convert "OUTL" into "F_OUTL" which generates ERR.NI as a result, if QPTR is not present.
Per
dont be happy. worry
- ?
dont be happy. worry
- ?
-
- Font of All Knowledge
- Posts: 4029
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: sQLux Detection
Hi,
The process I use for the boot file to determine if sQLux is running is to check the Function UQLX_RELEASE$, which is defined with the UQLX release version data.
SMSQ/E will see it has a null string and JS would see it as an undefined string.
This seems to work , but it may not be very elegant.
I do not want add more extensions to check something is installed or not.
The problem is that Minerva will only run certain versions of QPAC2 , MENU_REXT, needs PTR_GEN, WMAN, HOT_RECT of a certain version not the up to date versions.
I was going have use 2 version of QD, but I am starting to use MicroEmacs, with the SuperBasic syntax highlighting is nice to use.
I just need a MicrEmacs macro to execute multibasic, using pipep, and load the Superbasic program.
Or maybe use SSB to run the Superbasic program from MicroEmacs.
The process I use for the boot file to determine if sQLux is running is to check the Function UQLX_RELEASE$, which is defined with the UQLX release version data.
SMSQ/E will see it has a null string and JS would see it as an undefined string.
This seems to work , but it may not be very elegant.
I do not want add more extensions to check something is installed or not.
The problem is that Minerva will only run certain versions of QPAC2 , MENU_REXT, needs PTR_GEN, WMAN, HOT_RECT of a certain version not the up to date versions.
I was going have use 2 version of QD, but I am starting to use MicroEmacs, with the SuperBasic syntax highlighting is nice to use.
I just need a MicrEmacs macro to execute multibasic, using pipep, and load the Superbasic program.
Or maybe use SSB to run the Superbasic program from MicroEmacs.
Regards,
Derek
Derek