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!
>
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: [EMAIL PROTECTED]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250
or email: [EMAIL PROTECTED]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.