The following helps a lot... How can it be cranked into UniBasic? --Bill
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ron Sharcott Sent: Monday, April 30, 2007 5:56 PM To: '[email protected]' Subject: RE: [U2] Who Am I ? wIntegrate I think this is what you're looking for. Try capturing the results of the tty command (UNIX). These are different if terminal (dev/pty##) or if wIntegrate. We use this style of testing for Datatel's UI so that wIntegrate gets the prompt and terminal gets a menu. I've trimmed it a touch to make it clearer but if you change the echos to write to a file you should capture the correct value. ISINT=`tty | grep -c /dev/pts` if [ "${ISINT}j" = "1j" ] then echo "Terminal session" else echo "From wIntegrate fi Hope this helps. Ron Sharcott (3635) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 2:42 PM To: '[email protected]' Subject: [U2] Who Am I ? wIntegrate How do I tell UniBasic whether I am Dynamic Connect or wIntegrate? I want to prevent users from running a Dynamic Connect session if wIntegrate is required to run the application. --Bill ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
