Solved

Script for cross platform

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

22 Experts available now in Live!

Get 1:1 Help Now