Hi...
Iam running the following Perl Script for telnet and running the commands.The script is exited without any errors.But the telnet commands are not executed,Please help me to resolve my problem.
My telnet session
#telnet 9.121.61.2 2013
Trying 9.121.61.2...
Connected to 9.121.61.2.
Escape character is '^]'.
Perl Script
#!/usr/bin/perl -w
use Net::Telnet();
$telnet = new Net::Teln
Hi,
Need some help on exiting the telnet session from the script.
#!/bin/ksh
telnet <ip>
it would print some text and
it would ask for a username and pwd.
I jus need to capture the text and i need to come out of the telnet session.
is it possible without expect ?
Is there a way to make a computer telnet into a server as soon as they log in and then not be able to log out of the telnet session. This is for a library searching database computer. Also might like to know the computer is headless. (CLI Only) I wrote this script but it is not functioning.
#!/bin/bash
while :
do
echo -e "password" | telnet servername.domain.edu
done
I am doing telnet to windows host from Linux to list Check_mk_agent data. but its giving me following output.
[root@myhost ~]# telnet winhost 6556
Trying 130.23.45.1...
telnet: connect to address 130.23.45.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Am I missing anything to set up? Please help.
Hopefully my question makes sense, but I was wondering if the telnet service has anything to do with console logins or if they are completely unrelated. So for example, does the /etc/default/login file in UNIX have anything to do with Telnet?
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations.
I'm just curious if this is possible.
I am not able to telnet. the telnet-server is installed.# telnet 127.0.0.1 8023Trying 127.0.0.1...telnet: connect to address 127.0.0.1: Connection refusedtelnet: Unabl... [by looza]
I want to create script wherein it will check the application if its running. The command that I'll be using to check the application is telnet (if you can recommend others, that's ok).
I've an application and it is listening to port 1808. If I do telnet localhost 1808, the response is :
Code:
[root@test ~]# telnet localhost 1808
Trying 127.0.0.1...