09-23-2009
Guess: Does this error mean that the "passwd" process has already exited, or didn't start, before the first send?
"send: spawn id exp3 not open"
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm very new to UNIX.
I need to FTP a file to a remote host. It happens through a port 2222.I need to automate the process as the SCP command prompts for a password.
1) The regular ftp, tells me that the connection is refused
2) The sftp login@remotehost
gives me... (0 Replies)
Discussion started by: sandy.cog
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies
3. Shell Programming and Scripting
Hi,
I am fairly novice at bash but not bad at C and so wondered if a for loop could be done as shown below:#!/bin/sh
echo "Enter some strings , terminate with a single 'x':";
REPLY=;
#I am trying to replace this with a arithmetic for statement:
j=0;
while ; do
((j++));
# My logic: ... (3 Replies)
Discussion started by: HowardL
3 Replies
4. Solaris
I need to run the spawn command but when I typed it in, I got
"ksh: spawn: not found".
So, I downloaded spawn-fcgi but it required to be compiled first. The compile failed when I tried it. I need a copy that's ready to be used.
Unix system info:
OS: Sun Solaris 2.8
Shell: ksh
Does... (4 Replies)
Discussion started by: april
4 Replies
5. Shell Programming and Scripting
i want to write a script that automatically fills in a form and pushes a few buttons. can i do that with bash or something similar? (1 Reply)
Discussion started by: magiling
1 Replies
6. UNIX for Advanced & Expert Users
what is diffenrence between spawn and fork ?
"fork() system call spawns the processess" what is mean by this sentence. (1 Reply)
Discussion started by: anandgodse
1 Replies
7. Shell Programming and Scripting
Hi,
I am executing a expect script in while loop for doing telnet on list of servers stored in file as below :
expect script :
#!/usr/bin/expect -f
set timeout 20
set ip
set port
if { == 0} {
send_user "Usage: scriptname ip port\n"
exit 1
}
#exp_internal 1
log_user 0
spawn... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Siddharth shivh
3 Replies
9. Shell Programming and Scripting
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