Solved

Script for cross platform

Posted on 1998-12-10
4
168 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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now