10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Dear Tech Guys,
I am trying to send some commands on the local server and it always asks for user name and password after each command. To serve the purpose I am using expect function as follows:
set timeout 20
expect "Please Enter UserName: "... (6 Replies)
Discussion started by: Xtreme
2. Shell Programming and Scripting
I am writing one script using expect, that script which is used in spawn will accepts only 1. Enter 2. Ctrl+c
Press Control-C to exit, Enter to proceed.
Could some one share some thoughts to send the above user inputs in linux expect block ?
Sam (0 Replies)
Discussion started by: SCHITIMA
3. Shell Programming and Scripting
I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the remote servers where I am logging in.
touch... (1 Reply)
Discussion started by: rahul2662
4. Shell Programming and Scripting
Am trying to write a script for installing PAM in mulitiple server by using expect and send command. Am facing the below issues,could you please assist. thanks.
# cat /tmp/gkscrpt.exp
expect -re "(y/n) "
send --... (1 Reply)
Discussion started by: gowthamakanthan
5. Shell Programming and Scripting
i want to automate fdisk command .
i spawned a process containing fdisk command from a process
and tried to send the options to fdisk promt from that process.
but that spawed process is notstarting itself
help me out
trying for two days
echo... (5 Replies)
Discussion started by: jagak89
6. Shell Programming and Scripting
Trying to script an application's interactive add-user function with expect/send.
So far no information is sent, but the add-user function is called.
Any help appreciated! Many Thanks
#PATH to add-user: PATH to expect
... (2 Replies)
Discussion started by: nolamiami
7. Shell Programming and Scripting
After expect catches the string I specify, is there a way to ask expect wait for sometime before running the next send command ?
So my script looks like following,
expect "some string"
#How to ask expect to wait for a while
send "next command"
The reason I want to do this is... (0 Replies)
Discussion started by: qiulang
8. Shell Programming and Scripting
I am currently working on one command line application on AIX (Unix Platform).Here i need to use Expect package.
By using Expect package at the top of the script,i want to use just Send command of Expect package to send characters like,
1. Press Enter key
2. Press spacebar
3.... (6 Replies)
Discussion started by: neha123
9. Shell Programming and Scripting
I have a code which needs to do :
spawn ftp 10.4.12.22
expect "Name (10.4.12.22:mmsadmin):"
but when i run its say spawn, send and expect is not found...
how can i enable or install... (1 Reply)
Discussion started by: asadlone
10. Shell Programming and Scripting
I wanna write a script in which it expect something and if it gets whats expected then send the command relating to that.
Required Password for Asad: ******
I tried to use the expect key word but its does not work.
I am using Solaris 8/9
If... (1 Reply)
Discussion started by: asadlone