I'm trying to send a HTTP POST command after doing a telnet to a machine, like below:
The problem is that adding it in a script, the POST doesn't work after doing the telnet. Launching them by hand, this work and, after doing the telnet, the POST commands return a right command.
I'm trying to send a command automatically via Telnet, but without success.
I can do this:
> telnet 100.100.100.1 8080
Trying 100.100.100.1...
Connected to 100.100.100.1.
Escape character is '^]'.
Whereby I enter "command" and everything works like a charm, but I'd like to do this... (3 Replies)
Hi,
i have typed telnet yahoo.com 80 in command prompt
it displays as a blank command prompt page titling as Telnet Yahoo.com
Other than that i am not able to get anything. can anyone sort me out the reason for this (12 Replies)
I am trying to write a shell script to execute some commands..
telnet <IP address of the router>
wait 10
echo "username"
echo "password"
sh log
exit
but i am unable to execute it properly ..please help me ..
thanks in advance
Sri (1 Reply)
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
I am not very much familiar with telnet based scripting so I would need your help to directly submitting sms as deliver_sm or submit_sm msg to SMSC (IP & system_id and password are already known). So, need your help to provide such script. I previously used such script but my harddisk crashed and... (1 Reply)
Hi Team,
I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time..
CONFIG_CHNG.sh
printf 'Please Input Node ID : '
read node
node="$node"
#exec > node_log_$node.log 2>&1
#set -x
>... (2 Replies)
I tried the below steps for telnet command from a remote server:
1. telnet myservice.com 443
2. GET / HTTP/1.0
3. Press enter key twice
Please see the output below: bash-3.2$ hostname
remoteserver1
bash-3.2$ telnet myservice.com 443
Trying 191.172.172.133...
Connected to... (7 Replies)
Hi
I need to disable finger & telnet command in solaris 8
I have put the # infront of finger and telnet line in /etc/inetd.conf file. Further I have run the below command
kill -1 <process id of inetd >
But when I am running finger command it is till giving information for remote machine... (8 Replies)
Hello,
I need to verify whether I am able to make connection to a remote server from my AIX (os level : 7.1.0.0) host.
The host has 2 Alias IP's how can I force an source Alias IP on the telnet command.
I tried the below options but none of them worked.
Is there any other command that... (6 Replies)
Discussion started by: rosebud123
6 Replies
LEARN ABOUT MOJAVE
regexp::common::uri::telnet
Regexp::Common::URI::telnet(3) User Contributed Perl Documentation Regexp::Common::URI::telnet(3)NAME
Regexp::Common::URI::telnet -- Returns a pattern for telnet URIs.
SYNOPSIS
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{telnet}/ and print "Contains a telnet URI.
";
}
DESCRIPTION
$RE{URI}{telnet}
Returns a pattern that matches telnet URIs, as defined by RFC 1738. Telnet URIs have the form:
"telnet:" "//" [ user [ ":" password ] "@" ] host [ ":" port ] [ "/" ]
Under "{-keep}", the following are returned:
$1 The complete URI.
$2 The scheme.
$3 The username:password combo, or just the username if there is no password.
$4 The username, if given.
$5 The password, if given.
$6 The host:port combo, or just the host if there's no port.
$7 The host.
$8 The port, if given.
$9 The trailing slash, if any.
REFERENCES
[RFC 1738]
Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource Locators (URL). December 1994.
SEE ALSO
Regexp::Common::URI for other supported URIs.
AUTHOR
Damian Conway (damian@conway.org)
MAINTAINANCE
This package is maintained by Abigail (regexp-common@abigail.be).
BUGS AND IRRITATIONS
Bound to be plenty.
LICENSE and COPYRIGHT
This software is Copyright (c) 2001 - 2009, Damian Conway and Abigail.
This module is free software, and maybe used under any of the following licenses:
1) The Perl Artistic License. See the file COPYRIGHT.AL.
2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
3) The BSD Licence. See the file COPYRIGHT.BSD.
4) The MIT Licence. See the file COPYRIGHT.MIT.
perl v5.18.2 2013-03-08 Regexp::Common::URI::telnet(3)