I'd like to offer a different approach to the problem. Besides determining 
emulator, it can potentially determine location, which printer to use, and 
more.

The trick is to pass an environment variable to the host, at login time. 
The emulator can be configured to send whatever is needed. This is 
possible with both the telnet and the SSH protocol.

This used to be an easy option in the days of telnet. Then, owing to the 
security implications of passing things like a PATH variable, it was 
restricted in various telnetd (daemon) programs.

However, with OpenSSH's sshd, this is configurable. A setting in the 
sshd_config file specifies what environment variables can be passed (the 
default is "none"). Wildcards are accepted.

So for instance, if you use Anzio as an SSH client, and you configure your 
sshd_config to allow "ANZ_*", then any environment variable that the 
emulator sends that starts with "ANZ_" will be accepted. The sshd will 
place allowed variables into the environment that is inherited by 
everything downstream. Any shell script or program can query for the 
existence and value of any specific variable.

I don't know how many of the other emulators allow this.

Anzio users use this to specify their internal IP address, their program 
type (Anzio Lite or AnzioWin), Windows machine name, username, screen 
size, variations on terminal type, timezone, file locations, Terminal 
Services information, etc.

Regards,
....Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: [email protected]
 company e-mail: [email protected]
          voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
            fax: (US) 503-624-0760
            web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
                 10240 SW Nimbus, Suite L9
                 Portland, OR  97223  USA
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to