Sponsored Content
Full Discussion: Reg : telnet password issue
Top Forums Shell Programming and Scripting Reg : telnet password issue Post 302147665 by sam99 on Wednesday 28th of November 2007 03:01:39 AM
Old 11-28-2007
Reg : telnet password issue

Hi All,

I am working on AIX 5.3.

My requirement is to telnet to a server and scp a file from another server
In my shell script i am using telnet to enter to a server and i am echoing the password as below

echo open $Infahost
sleep 1
echo $Infaftplogin
sleep 1
echo $Infaftppasswd
sleep 1

i am getting this as the output....

telnet> Trying...
Connected to kaathr67.
Escape character is '^]'.
getwinsize:ioctl: A specified file does not support the ioctl system call.


telnet (kaathr67)

trysrc
4crows
/usr/local/bin/scp pickme@bridge.share.com:../internal/cmd_ltp* /u98_data/pcenterdata/prod/FTP/cmd_ltp_Extract_20071104_101836.txt

















Attention:


Ths is a restricted computer system and is for authorized use only.
Unauthorized use of this system may result in disciplinary action
and/or civil and criminal penalties. Failure to maintain the
confidentiality of sensitive information may subject the user to
penalties under applicable laws. By using this system, the user consents
to monitoring, inspection, and disclosure of all activity for
security purposes.


Authorized Login: trysrc's Password:
/dev/pts/141: Password read timed out -- possible noise on port
Connection closed.

telnet>

whenever i am running the script for the first time i getting this error.
when i rerun it is working fine...This has been repeating for the past few runs...

please advice
sam

Last edited by sam99; 11-28-2007 at 04:08 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

In Telnet I can't type anything in password!

I Need Help with Telnet when I login to telnet I type in my Unix user name and then I push ENTER and I can't type anything in password. CAN ANY ONE HELP ME??? (1 Reply)
Discussion started by: Campkin@Hunt
1 Replies

2. Solaris

connect whit Telnet without password

It's possible to connect whit Telnet (or rlogin) whithout password??? I must write a script (this script run on a windows machine), then after the connection on Unix machine, run a perl script and exit. I can know if an host can be consedered "Trusted" like SSH protocol? Thanks! (2 Replies)
Discussion started by: raffyTxT
2 Replies

3. Shell Programming and Scripting

telnet issue

Hi , i am a beginner in AIX. please find my doubt I am calling the below script named test_1 by " sh test_1 | telnet " cmd1="var1=100" echo open $Infahost sleep 1 echo $Infaftplogin sleep 1 echo $Infaftppasswd sleep 1 echo $cmd1 sleep 5 echo $var1 sleep 5 echo exit (11 Replies)
Discussion started by: sam99
11 Replies

4. Shell Programming and Scripting

Reg: SCP issue

Hi , I am beginner in aix... i am using the following command in my shell script to to copy the files from a secured server to my aix box... /usr/local/bin/scp pickme@brad.wanted.com:../internal/mem_grp_details* Should i use sleep command in my shell script for the script to copy the... (15 Replies)
Discussion started by: sam99
15 Replies

5. Shell Programming and Scripting

Telnet usename and password

I am creating a spec file for RPM and I have a shell script that I am working on. The ojective to to telnet to a server, switch to the appropriate directory, run another shell script and then exit once the script is completed. telnet <ipaddress> echo <user> echo <pass> echo cd <directory>... (7 Replies)
Discussion started by: mastachef
7 Replies

6. UNIX for Advanced & Expert Users

Different root password between ftp and telnet

Hello All, I hope somebody can help me I used to work to client using solaris 2.5.1 using telnet to explore disk and ftp to archive data. There is one tester which I can connect using root password using putty but always keep rejecting me when i'm using root password using FTP. Are the... (7 Replies)
Discussion started by: sawrio
7 Replies

7. Shell Programming and Scripting

reg accepting password

Hi, I want to login to many systems and password should be taken automatically from a file(login is working but password is not accepting). Any help on this is appreciable . My code. for i in `cat /tmp/tes ` ====>tes file contain list of hosts > do ssh $i > perl prog.pl >... (1 Reply)
Discussion started by: rogerben
1 Replies

8. Shell Programming and Scripting

Not able to pass Username and Password in telnet session

I have created a shell script to telnet remote machine. Here is the problem I am not able to pass the login username and password to the telnet session. I have searched forum and got few other methods to achieve this. But I need to know what's wrong in the below script. username="root"... (2 Replies)
Discussion started by: uxpassion
2 Replies

9. UNIX for Beginners Questions & Answers

Telnet issue

In the below script, i want to check telnet port status of list of servers, here where ever port working i am getting output. where ever port is not working (where ever trying) there it's command stuck, there it's needed manual interruption like ctrl+c. without interception i want run this... (1 Reply)
Discussion started by: rajiv
1 Replies
TELNET-PROBE(1) 					      General Commands Manual						   TELNET-PROBE(1)

NAME
telnet-probe - lightweight telnet-like port probe SYNOPSIS
$PCP_BINADM_DIR/telnet-probe [-c] [-v] host port DESCRIPTION
telnet-probe allows the pmdashping(1) daemons to establish connections to arbitrary local and remote service-providing daemons so that response time and service availability information can be obtained. The required host and port number arguments have the same meaning as their telnet(1) equivalents. The -c option causes telnet-probe to perform a connect(2) only. This skips the read(2) and write(2) exercise that would otherwise be done after connecting (see below). The -v option causes telnet-probe to be verbose while operating. Once the telnet connection has been established, telnet-probe reads from stdin until end-of-file, and writes all the input data to the tel- net connection. Next, telnet-probe will read from the telnet connection until end-of-file, discarding whatever data it receives. Then telnet-probe exits. To operate successfully, the input passed via telnet-probe to the remote service must be sufficient to cause the remote service to close the connection when the last line of input has been processed, e.g. ending with ``quit'' when probing SMTP on port 25. By default telnet-probe will not produce any output, unless there is an error in which case a diagnostic message can be displayed (in ver- bose mode only) and the exit status will be non-zero indicating a failure. PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). DIAGNOSTICS
If telnet-probe succeeds, then 0 will be returned. If the attempt to establish a connection fails or is terminated, then a non-zero exit status is returned. SEE ALSO
PCPintro(1), pmdashping(1), pmie(1), telnet(1), connect(2), read(2) and write(2). Performance Co-Pilot PCP TELNET-PROBE(1)
All times are GMT -4. The time now is 04:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy