Sponsored Content
Top Forums Shell Programming and Scripting Use expect to run an interactive shell script? Post 302629387 by prometheon123 on Tuesday 24th of April 2012 03:06:21 PM
Old 04-24-2012
So I would do a
Code:
#!/usr/bin/bash
echo -n "Enter the number 1 to install then press  [ENTER]: "
read INSTALL

if [ $INSTALL = 1 ]
then
echo "install"
else
echo "not install"
sh /tmp/symantecuninstall.sh

Or something like that?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run expect script in systems that don't support it out of box

Noob question .. My Java based application needs to change some user passwords based on some user actions. Since this application can run on Redhat AS2.1 / AS4.0 / Solaris 9 etc, the most safe and portable solution that I could think of was: Use expect. Now, expect is not available on all... (1 Reply)
Discussion started by: namityadav
1 Replies

2. Shell Programming and Scripting

Korn shell interactive script

Hi, How can I prompt a user for two input and pass the input to variables in the script. I have the following script but it is not working: +++++++++Begin+++++++++++ #!/bin/sh database_c=$1 output_f=$2 echo "Your db is $1\nOutput is $2" +++++++++End+++++++++++ Thanks, Leonard (3 Replies)
Discussion started by: leonard905
3 Replies

3. Shell Programming and Scripting

Schedule an interactive shell script

Hi, I need to schedule a shell script which executes another shell script along with a series of other commands. When the inner shell script is executed it prompts for a password..... This inner shell cannot be changed How can I do this???? Regards, Chaitrali. (4 Replies)
Discussion started by: Chaitrali
4 Replies

4. Shell Programming and Scripting

how to run shell script inside expect script?

I have the code like this : shell script continues ... .... expect -c" spawn telnet $ip expect "login:" send \"$usrname\r\" expect "Password:" send \"$passwd\r\" expect "*\>" send \"$cmdstr\r\" ... (1 Reply)
Discussion started by: robbiezr
1 Replies

5. Homework & Coursework Questions

Help with Interactive / Non Interactive Shell script

Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines. It then prompts for deletion of the file. If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies

6. Programming

Expect script to run a Shell script on remote server

Hi All, I am using a expect script to run a shell script on remote server, the code is as follows. But the problem is that it executes only first command, and hangs it doesn't run the next commands. spawn ssh $uid@$host expect "password:" send "$password\r" expect "*\r" send... (2 Replies)
Discussion started by: yashwanthsn
2 Replies

7. Shell Programming and Scripting

Expect command use for interactive mode of scripting

Hi All, I am writing a script(Auto_Installation.sh) which is calling one another script (./update_manager /spare/install/HO7/PME_Response_file.txt) Now the issue is result of (./update_manager /spare/install/HO7/PME_Response_file.txt) script is ##########################################... (6 Replies)
Discussion started by: Dhruvak
6 Replies

8. Shell Programming and Scripting

Shell script using an interactive command

Hello experts, I have a to write script for monitoring, the script would use a command and I plan to write the script as follows while true do command -arg sleep 2 clear done The output would be set up on a screen for monitoring. However the issue is that the command used in... (2 Replies)
Discussion started by: maverick_here
2 Replies

9. Shell Programming and Scripting

Cannot get this bash/expect script to run under a crontab

#!/bin/bash # # RAP configuration script # # Usage: ./rap.sh # # Requires: expect, tcl # # Script expects to find a file called rap.csv located in the same directory as the script. If the file is placed # in a different directory, modify the custom entries section to specify the absolute... (8 Replies)
Discussion started by: mrkool
8 Replies

10. UNIX for Advanced & Expert Users

Unable to run the script on remote machine Using Expect script

Not able to execute the file in remote host using except utility I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: Code: #!/usr/bin/expect set fd set password close $fd set df set app close $df... (1 Reply)
Discussion started by: Manoj Bajpai
1 Replies
CHICKEN-INSTALL(1)					      General Commands Manual						CHICKEN-INSTALL(1)

NAME
chicken-install - download and install extension libraries for Chicken Scheme SYNOPSIS
chicken-install [OPTION | EXTENSION[:VERSION]] ... DESCRIPTION
chicken-install is a program that downloads, compiles and installs a prepackaged extension library from sources. If no extension name is given on the command-line, then any existing setup scripts in the current directory will be executed in some unspecified order. OPTIONS
Enter chicken-install -help for a list of supported command-line options. ENVIRONMENT VARIABLES
CHICKEN_PREFIX The installation prefix where CHICKEN Scheme and its support files and libraries are located. Defaults to the installation time pre- fix given when configuring the system. CHICKEN_INSTALL_PREFIX An alternative installation prefix that will be prepended to extension installation paths if specified. CHICKEN_REPOSITORY The path where extension libraries are installed. Defaults to the package-library path selected during configuration (usually /var/lib/chicken/<binary-version> ) DOCUMENTATION
More information can be found in the Chicken User's Manual BUGS
Submit bug reports by e-mail to chicken-janitors@nongnu.org , preferrably using the chicken-bug tool. AUTHORS
The CHICKEN Team SEE ALSO
chicken-uninstall(1) chicken-status(1) chicken(1) csc(1) chicken-bug(1) 13 Aug 2008 CHICKEN-INSTALL(1)
All times are GMT -4. The time now is 09:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy