[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: OS User using SQR
- Subject: Re: OS User using SQR
- From: Jamie Harris <JHarris@FCC.CC.MD.US>
- Date: Mon, 4 Feb 2002 16:54:43 -0500
I'm sure you saw the posts about environment variables. Those would work, but
be aware that it's not very hard for a user to fake a different username.
At the DOS prompt:
SET USERNAME=BOB would tell your SQR that my username is BOB when it's not.
If the intent of storing the username is for any kind of security tracking or
anything, you'll need to find another way. If there isn't a concern with the
user spoofing their ID then this is the easiest way to go. If there isn't a
variable being set by the OS and/or network client (here our Netware login name
is stored in its own variable - NWUSERNAME) you might be able to get something
added to a login script somewhere that will add it.
Good luck!
-----------------------------------------------------
Jamie Harris
Junior Systems Programmer/Analyst
Information Technology Division
Frederick Community College
-----------------------------------------------------
>>> Praveen.Gopu@AXACS.COM 2/4/2002 1:40:29 PM >>>
Hi Everyone,
Can we get the OS user id from SQR into a variable?
I am using call system using within SQR but I need to store the OS user
into a variable within SQR.
Any thoughts?
Thanks,
Praveen
BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Harris, Jamie
TEL;WORK:2668
ORG:Work;Division of Information Technology
EMAIL;WORK;PREF:JHarris@fcc.cc.md.us
N:Harris;Jamie
TITLE:Network Technician
ADR;DOM;WORK;PARCEL;POSTAL:;L-205
LABEL;DOM;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Harris, Jamie=0A=
L-205
X-GWUSERID:JHarris
END:VCARD