Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script for cross platform

Posted on 1998-12-10
4
Medium Priority
?
200 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 200 total points
ID: 1582709
shenoyvaib, are you still reading here?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

971 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