We are not "on call". If someone doesn't answer your question immediately, and you have no further information to provide, wait! I didn't get here just because you bumped it.
"spawn id exp4 not open" is the message expect gives when the thing you're communicating with, telnet in this case, dies while you're trying to use it. Try telneting to that IP / port manually and see what it does.
Your shell script can probably be made far more efficient -- you don't need the help of head, tail, and cut to read and tokenize lines from a file one by one, there's a command just for that.
Hello hello, did a quick search and didn't turn up anything helpful. I've got a book I'm sure has the answers, but I don't think I'll have time to finish it before this all has to work, so here goes~ if this isn't a good place to post and someone could direct me to another forum I'd appreciate... (1 Reply)
Hi All,
I have to write one expect script to login to one system.
I am using
set timeout -1
match_max 100000
spawn ssh root@hostname
Now when I do spawn ssh to that host it send some warning message and one challenge
Challenge: 111-2345
I need to read this challenge value and has... (1 Reply)
Hi,
AIX 5.3
Trying to implement script that change oracle password. Getting following errors:
send: spawn id exp3 not open
while executing
"send "xxx\r"
Any idea? (4 Replies)
Hi everybody,
We are trying to connect to a server and to a router using an .expect script that automatically authenticate the username and password needed. The error is that we cannot connect to the server using ssh AND we cannot connect to the router using either telnet or go commands from the... (1 Reply)
Can 'spawn' script be used more than once in a given expect script ??
What I'm trying to do is, first log-into a remote server through one 'ssh' spawn com and then from there log-into another server using a secod 'ssh' spawn command. But this approach is not working... the second ssh attempt... (1 Reply)
Hi all,
I have a script that runs sftp with expect so I can login and send a file in a cronjob. I've installed this on a couple other servers and it has been fine. However, this time on this machine, it seems to be giving me an issue. It won't move past the spawn sftp command and return a... (3 Replies)
Hi All,
i am trying to ssh to a remote machine and execute certain command to remote machine through script.
i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as
expect: spawn id exp5 not open
while executing
"expect "$" {... (3 Replies)
Hi All, I am having an issue with my script which I am using to get files from a remote server.
In my script I am going to server:- REMOTESERVER and directory:- /Interface/Upload, and then getting files from there to my local server directory:- /ftp/jail_nextview_LMS/home/nextview_LMS/outbox.
... (1 Reply)
Discussion started by: Hero6438
1 Replies
LEARN ABOUT DEBIAN
tcplisten
TCPCONNECT(1) General Commands Manual TCPCONNECT(1)NAME
tcplisten - general TCP/IP server
SYNOPSIS
tcplisten [-irv] [localaddr] port
DESCRIPTION
tcplisten waits for a TCP/IP connection on port. If a localaddr parameter is given, tcplisten will bind to that IP address. Otherwise
tcplisten will accept connections to any of the local machines IP addresses. Data received from the client is printed on standard output,
and data read from standard input is sent to the client. When end-of-file is reached on both standard input and the TCP/IP connection,
tcplisten terminates.
OPTIONS -i Terminate at end-of-file on standard input; don't wait for the client to close the connection.
-r Terminate when the remote client closes the connection; don't wait for end-of-file on standard input.
-v Verbose mode. Prints a message to standard error about the origins (host and port) of the client.
SEE ALSO tcpconnect(1), telnet(1), mini-inetd(1), tcpbug(1).
BUGS
The names of the options are not yet finalized, and may change at a future release.
1997 April 13 TCPCONNECT(1)