in reply to telnet login script from W2K to unix box

if you have a x window emulation on your windoz box
like exceed or cygwin xfree86 and an x window libraries
on your unix box, you could set you display. see example below
#!/usr/local/bin/perl -w use strict; use Net::Telnet; my $username = "xxxx"; my $passwd = "xxxx"; my $hostname = "xxxx"; #use Net::Telnet (); my $t = new Net::Telnet (Timeout => 10, Prompt => '/}/'); $t->input_log('Tempature.out'); $t->errmode('return'); $t->open($hostname); $t->login($username, $passwd); $t->print("ksh"); $t->print("export DISPLAY=10.231.14.57:0.0"); $t->print("nohup /usr/openwin/bin/xterm &"); sleep 2; $t->close;

Replies are listed 'Best First'.
Re^2: telnet login script from W2K to unix box
by gman (Friar) on Jul 28, 2004 at 13:48 UTC
    I would also like to add, as someone else has stated this is insecure and SSH should be used if possible.
    gman