|
Hi,
I added the code to do this into CVS & also updated the tarball on my
web site.
It only works from the config file (not from the command-line, since that
looked a bit more complicated to do) so to use it you'll make a tn5250rc
file similar to:
test {
host = as400
env.DEVNAME=$loginname$01
font_80=Terminal
}
and then run:
tn5250 test
Keep in mind, of course, that OS/400 device names cannot exceed 10 chars
in length.
Have fun!
On Mon, 21 Jan 2002, Egan, Matt B. (Artco) wrote:
>
> There may be an easier way... I found this in the Win32 API:
>
> GetUserName() -- "Retrieves the user name of the current thread. This
> is the name of the user currently logged onto the system." "If
> the current thread is impersonating another client, the
> GetUserName function returns the user name of the client that
> the thread is impersonating."
>
> Perfect
>
> So I could retrieve user name, and replace the string '$loginname$'
> with the user name that was returned...
>
> Sweet
>
> Naturally, we'd want to do the same thing in the U**x version...
>
> Of course!
>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.