Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
No such thing as a small change
 
PerlMonks  

Re: telnet login script from W2K to unix box

by gman (Friar)
on Jul 28, 2004 at 09:45 UTC ( [id://378036]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 09:48 UTC
    I would also like to add, as someone else has stated this is insecure and SSH should be used if possible.
    gman

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://378036]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.