I'm need to connect to another host in a script using the telnet command. How do I pass the login and password to be able to connect to the other host from within the script? (10 Replies)
Hi,
How to write a script to perform telnet/ftp operation.
Also please refer some site to get reference about shell scripting.
Thanks in advance
-Arun. (1 Reply)
I am trying to use telnet in shell script but getting following error
error
Connected to crmapp00.agf.ca.
Escape character is '^]'.
Connection closed by foreign host.
Script
#!/bin/ksh
PATH=/usr/sbin/:/usr/bin:/usr/ucb:/etc:/usr/local/bin:.
telnet HOSTNAME <<SCRIPT
user userid... (9 Replies)
Hi All,
I was trying to use telnet in a script to access a certain processor on a certain port to view some processes. The problem is that when I use telnet the output is displayed for me.
The script is:
#!/bin/sh
cd /ahmed/ezzat/
rm ss7trace.log
touch ss7trace.log
chmod 755... (3 Replies)
Hi Guys,
How do I write the script for the following
telnet 192.168.1.100 9002
if the result is less than 1 second. The script should say as port open
if the result takes more than 3 seconds. The script should display as port closed.
Thanks,
Charan (1 Reply)
Hi all,
I would like to write a ad hoc shell script that would allow me to do some telnet tests to multiple IP's and ports at the same time . So, I want to determine which one is successful and which one fails. So, basically I would like the shell to spawn the telnet test and to break out of... (3 Replies)
Hello,
I wrote a script for doing telnet.However the requirement got changed and now I have to write a telnet script that will
1. Do the telnet from all the virtual ips in a box(Ex: x.x.x.x is the box ip, and x.x.x.1,x.x.x.2 etc are virtual ips associated with that box.)
2. The port range... (0 Replies)
Hello,
I wrote a script for doing telnet.However the requirement got changed and now I have to write a telnet script that will
1. Do the telnet from all the virtual ips in a box(Ex: x.x.x.x is the box ip, and x.x.x.1,x.x.x.2 etc are virtual ips associated with that box.)
2. The port range... (3 Replies)
Discussion started by: coolkid
3 Replies
LEARN ABOUT DEBIAN
portslave
portslave(8) Portslave portslave(8)NAME
portslave - terminal server program.
SYNOPSIS
portslave [+config-file] port|-
DESCRIPTION
This manual page documents briefly the portslave, program.
This program is a getty replacement that will run it's own version of pppd, the user can specify their user-name via a login: prompt or PPP
PAP negotiation.
After the username and password have been supplied the user will be authenticated by the RADIUS protocol.
OPTIONS
An optional first parameter is '+config-file' to specify an alternate config file. The default is /etc/portslave/pslave.conf .
The next parameter is either the port number or '-'. The value '-' means that portslave is to use it's controlling tty as the serial
device and inspect the config file to find the RADIUS port number which matches that. This was originally written for telnetd support
(telnetd puts a '-' as the first command line parameter) but can be used for other things.
To run over the telnet protocol put a config entry similar to the following in your inetd configuration:
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd -L /usr/sbin/portslave
Then in the pslave.conf file put a series of entries specifying every pseudo-tty device (either ptyp0, ptyp1, etc or pts/1, pts/2 etc
depending on which type of device naming you use). For the RADIUS port numbers which are to be used for telnet connections you must spec-
ify the initchat as an empty string.
If you want to run portslave over a clean TCP connection (no telnet protocol) then put the following in your inetd configuration:
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/portslave -
AUTHOR
This man page was written by Russell Coker <russell@coker.com.au>. May be freely used and distributed without restriction.
SEE ALSO pslave.conf(5), pppd(8), ctlportslave(1) http://doc.coker.com.au/projects/portslave/
Russell Coker <russell@coker.com.au> 2010.03.30 portslave(8)