Expect prompt extending to next line


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Expect prompt extending to next line
# 1  
Old 07-09-2015
Expect prompt extending to next line

Hi guys,

I am trying to install a software which is a shell script. I am using expect to do the silent installation.

There is a strange line during the installation of the software like this below. The prompt goes to the next line.

Code:
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT 
      :

So in my expect file I have tried with these 2 options, but it's NOT working.Smilie

Code:
1. expect  "    : " { send "/home/tester/IDir\r" }
2. expect "ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT\
	: " { send "/home/tester/IDir\r" }

Please help!!

Thanks,
KapKap
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expect script not expecting the password prompt

I have a script that does an SSH into a remote node. It should expect the prompt and send the password. #!/usr/bin/expect set user ; set pass ; spawn ssh $user@E-Internal expect { -re "RSA key fingerprint" {send "yes\r"} timeout... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

2. Shell Programming and Scripting

Expect script to read file line by line

I have an expect script which is run inside a bash script. I am trying to ssh to a jump server then from the jump server telnet to each router in a file list and run the same command. I tried many ways but down not read the router list file for some reason. I get the following error: wrong #... (0 Replies)
Discussion started by: numele
0 Replies

3. Shell Programming and Scripting

Expect doesn't recognize a password prompt

Hi. Here is beginning of my script #!/usr/local/bin/expect -- set timeout 15 spawn /usr/local/account.sh -n modify expect "Password:" {send "mypassword\r"} But due to some terminal control sequences (or something else, dunno exactly) my password prompt is looking like this: and expect... (3 Replies)
Discussion started by: urello
3 Replies

4. Shell Programming and Scripting

extending the line length of nohup output

Hi I'm backgrounding matlab jobs using nohup. My foreground programs are written for an xterm that has 132 columns. When I use nohup and redirect the output to nohup.out, the default appears to be something like 72 columns, which breaks up my formatted screen output from matlab commands... (1 Reply)
Discussion started by: LeoSimon
1 Replies

5. Shell Programming and Scripting

Handling SQL prompt through Perl expect module

Hi All, I have a doubt whether expect module in perl will work in SQL prompt or its applicable only for shell prompt ? Thanks, Arun V (2 Replies)
Discussion started by: arun_maffy
2 Replies

6. Shell Programming and Scripting

Expect, save to file and remove before prompt

I have an Expect script which works very well. It logs into my remote routers and runs some commands and then to the next until finished. I need two things, first I need to save the output to a file from where the log_user 1 begins. expect << EOF set timeout 15 #set var "exit " match_max... (1 Reply)
Discussion started by: numele
1 Replies

7. Shell Programming and Scripting

Expect Script square bracket dollar prompt

Hi Thanks for this amazing forum first, I've been searching answers in it for problems that I've encountered at work. The only problem I haven't been able to find a fix for, is a ever waiting for prompt problem in Expect when encounter a $ prompt. I usually set the timeout to -1 cause the... (2 Replies)
Discussion started by: Ikaro0
2 Replies

8. AIX

prompt line

Hlo sir My system file / system file is full and i am unable to enter any command such as ls or to start my server RS6000 The network is blocked and the users are log off. (0 Replies)
Discussion started by: sobnc
0 Replies

9. UNIX for Dummies Questions & Answers

Path in prompt line?

Can anyone tell me what makes the current path appear in the prompt ? thx (4 Replies)
Discussion started by: Leitwolf
4 Replies

10. UNIX for Dummies Questions & Answers

2 line prompt

I know this is very easy. I just am having a problem determining how to do it. I want to have a 2-line command prompt when you hit return. I have no problem creating or exporting a PS1, but can't make into 2 lines. hostname-user:/path/to/dir # I really should know this, but my brain... (7 Replies)
Discussion started by: Kelam_Magnus
7 Replies
Login or Register to Ask a Question
installer(1M)						  System Administration Commands					     installer(1M)

NAME
installer - Solaris Web Start installer utility SYNOPSIS
installer [-locales list] [-nodisplay] [-noconsole] [-debug] DESCRIPTION
The installer utility invokes a Web Start install wizard sequence which will lead the user through a sequence of installation panels. This installer utility is found on many CDs that are shipped with Solaris and it will be found among the top level files of these CDs. When the installer is on a CD being accessed from a desktop file manager, the installer can be double clicked to start the installation sequence. If the user is not currently the system's root user, the root user password will be requested. The installer utility can also be run from other UNIX scripts. Usually, a script is used in conjunction with the utility's -nodis- play option. Add the -noconsole option for non-interactive scripts. OPTIONS
The following options are supported: -locales list Selects product translations for install, corresponding to the specified list of locales if the specified locale transla- tions are present on the installation media. Locales are supplied in a comma-separated list following the -locales option. An example list would appear as follows: installer -locales fr,de,it This would install products with translations for the French, German, and Italian locales. -nodisplay Runs the install without a graphical user interface. Use the default product install unless it was modified by the -locales options. -noconsole Run the install without any interactive text console device. Useful when paired with -nodisplay for non-interactive UNIX script use. -debug Outputs extra information about what the install is doing. Mainly for install diagnostic purposes. FILES
/var/sadm/install/logs location of installation log files SEE ALSO
prodreg(1M) SunOS 5.10 11 December 2001 installer(1M)