× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Note it only works in Win98

-----Original Message-----
From: Scott Klement [mailto:klemscot@klements.com]
Sent: Monday, January 21, 2002 4:13 PM
To: 'linux5250@midrange.com'
Subject: RE: [LINUX5250] Re: TN5250 under Windows support is ready for
tes ting



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: LINUX5250@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/linux5250
or email: LINUX5250-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.