{Blocked Content} RE: [U2] @LOGNAME?
Warning: This message has had one or more attachments removed Warning: (not named). Warning: Please read the "AngelicHost-Attachment-Warning.txt" attachment(s) for more information. Isn't @LOGNAME the group the user is a member of on Windows servers? You may have had the users be in their own windows groups before. From: [EMAIL PROTECTED] on behalf of Eric Neu Sent: Thu 5/3/2007 7:15 PM To: 'u2-users@listserver.u2ug.org' Subject: [U2] @LOGNAME? Greetings all, Does anyone here know how UniData on Windows sets @LOGNAME. Where/When does it get set? (UniData 6.1, Windows 2003SE) We've recently undergone a standards enforcement for NT user ids and many of my users had their user id changed. When these users use a process that checks @LOGNAME (from BASIC) to determine who they are their old user id is returned. I thought perhaps UniData might have stored some trace of the old IDs in the user's registry but logging on a new machine produces the same result. I also thought perhaps UniData might cache Windows credentials and forcing a password change might trigger an update but that didn't help. I'll try a server reboot after the close of business but if that doesn't work I'm not sure what to try next. I have considered using GETENV('USERNAME') to return the ID I'm expecting (which works btw) but that means changing a slew of programs and I'd prefer not to do that. Any information on this would be really helpful. Thank you, Eric Neu Zetron, Inc. eneu at zetron dot com 425.820.6363 x271 www.zetron.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ This is a message from the MailScanner E-Mail Virus Protection Service -- The original e-mail attachment "winmail.dat" was believed to be infected by a virus and has been replaced by this warning message. If you wish to receive a copy of the *infected* attachment, please e-mail helpdesk and include the whole of this message in your request. Alternatively, you can call them, with the contents of this message to hand when you call. At Thu May 3 20:00:49 2007 the virus scanner said: Could not parse Outlook Rich Text attachment Note to Help Desk: Look on the AngelicHost MailScanner in /home/virtual/site2/fst/var/spool/mail.quarantine/20070503 (message l4430lmK018339). -- Postmaster MailScanner thanks transtec Computers for their support --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] @LOGNAME?
Greetings all, Does anyone here know how UniData on Windows sets @LOGNAME. Where/When does it get set? (UniData 6.1, Windows 2003SE) We've recently undergone a standards enforcement for NT user ids and many of my users had their user id changed. When these users use a process that checks @LOGNAME (from BASIC) to determine who they are their old user id is returned. I thought perhaps UniData might have stored some trace of the old IDs in the user's registry but logging on a new machine produces the same result. I also thought perhaps UniData might cache Windows credentials and forcing a password change might trigger an update but that didn't help. I'll try a server reboot after the close of business but if that doesn't work I'm not sure what to try next. I have considered using GETENV('USERNAME') to return the ID I'm expecting (which works btw) but that means changing a slew of programs and I'd prefer not to do that. Any information on this would be really helpful. Thank you, Eric Neu Zetron, Inc. eneu at zetron dot com 425.820.6363 x271 www.zetron.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] What's My IP Address ?
[EMAIL PROTECTED] wrote: >> -Original Message- >> From: [EMAIL PROTECTED] >> How do I get the client's IP address? > > On linux you can find this with the "who" command, but I don't know if > it works on all *nixes. This will work if your version of who > supports it: > > EXECUTE 'SH -c "who am i"', OUT > WHO.AM.I > MY.IP = FIELD (FIELD (WHO.AM.I, ')', 1), '(', 2) > > The IP will already be resolved to the host name if it's available via > DNS or /etc/hosts. On AIX its "who -Hum" to get your own line formatted from wtmp. But I'd think the answerback approach makes more sense. I'm not familiar with DC, but most emulators allow you to specify the string to send back in response to CTRL-E during session startup. On a Unix host you should have this answerback string in $TERM when you start running /etc/profile and ~/.profile. If those scripts are going to modify this before uv or udt is invoked, then just save it somewhere else: export ANSWERBACK_TERM=$TERM and then inside udt you'd just run a program that did a GETENV("ANSWERBACK_TERM"), or in uv you might have to EXECUTE "SH -c 'echo $ANSWERBACK_TERM'" CAPTURING. Make your DC emulators answer differently to your wIntegrate ones and you are away. One other point. I couldn't understand how the malarchy with @TTY was going to help differentiate between DC and wIntegrate. Sure it could help work out whether you had a telnet session or were on a real old terminal, but both DC and wIntegrate will end up connected via a pseudo terminal. Cheers, Ken --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] What's My IP Address ?
Thanks to Wol, John, and Paul Hruby. I will try the given code. -Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Hester Sent: Wednesday, May 02, 2007 7:38 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] What's My IP Address ? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Brutzman, Bill > Sent: Wednesday, May 02, 2007 2:54 PM > To: 'u2-users@listserver.u2ug.org' > Subject: RE: [U2] What's My IP Address ? > > How do I get the client's IP address? On linux you can find this with the "who" command, but I don't know if it works on all *nixes. This will work if your version of who supports it: EXECUTE 'SH -c "who am i"', OUT > WHO.AM.I MY.IP = FIELD (FIELD (WHO.AM.I, ')', 1), '(', 2) The IP will already be resolved to the host name if it's available via DNS or /etc/hosts. -John --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Mark Shannon/Australia/IBM is out of the office.
I will be out of the office starting 03/05/2007 and will not return until 07/05/2007. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] What's My IP Address ?
wIntegrate certainly has this. We had a mix of Wyse50s, the odd PT250, and wIntegrate configured as a PT250. As the user logged in, LOGIN printed "esc " to the screen (at least, I think that's what it was) and read the response. That way, we (usually) didn't have users asking us "is this a Wyse or PT?". The Wyses the sequence was hard-coded, which was why we chose the sequence we did, and wIntegrate was configured to detect the sequence and respond. You modify the terminal .wis file with what you want. I seem to remember DC won't let you modify .wis, so you could just work on the basis that if you don't get a response then it's DC. Cheers, Wol -Original Message- From: John Hester [mailto:[EMAIL PROTECTED] Sent: 03 May 2007 01:01 To: u2-users@listserver.u2ug.org Subject: RE: [U2] What's My IP Address ? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Brutzman, Bill > Sent: Wednesday, May 02, 2007 2:54 PM > To: 'u2-users@listserver.u2ug.org' > Subject: RE: [U2] What's My IP Address ? > > How do I get the client's IP address? You might also want to check the documentation for Dynamic Connect and wIntegrate to see if there's an escape sequence you can print on the terminal that will return the emulator being run. Accuterm has this ability and we use it to determine if we are able to run Accuterm-only functions on the client: ACCUTERM.CHK=CHAR(027):CHAR(2):'I' ECHO OFF PRINT ACCUTERM.CHK: SLEEP INPUTIF INFO THEN INFO=TRIM(INFO) IF INFO[1,12] EQ 'ACCUTERM/WIN' THEN ACCUTERM.ON=1 END END ECHO ON -John --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/