Solved

Script for cross platform

Posted on 1998-12-10
4
177 Views
Last Modified: 2013-12-23
i want to write a script in the bat file which will login into the telnet session from windows side or DOS side.
0
Comment
Question by:shenoyvaib
  • 3
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582706
@echo off
telnet hostname


AFAIK, there is no way to automate login (send username and password) from DOS to UNIX, 'cause UNIX's telnetd (login) always reads from the tty.
0
 
LVL 1

Expert Comment

by:toTo
ID: 1582707
Other than telenet , there are some clients that can connect
to UNIX from DOS automaticaly :
i know rsh in the LanWorkPlace tcp suite from Novell
provided you have set /etc/hosts and ~toto/.rhosts
rsh hostname -l toto date
will run the command date on the host
i think you could find a rlogin but am not sure.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1582708
toTo, yes rlogin, rsh (and friends) may do it if setup properly, means they don't require a password.
Most (hopefully any) UNIX programs read their password from tty. rsh, rlogin, etc. will do it too.
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1582709
shenoyvaib, are you still reading here?
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Stuck in INIT/DROTHER 2 51
Internet Protocol Security question 3 94
Switch ports not working 8 54
VMware ESXi vswitch - performance question 2 77
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question