The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 07:19 AM
Simple to you not simple to me pattern matchin help aleks001 Shell Programming and Scripting 0 07-22-2007 11:06 PM
perl help with pipes and file handles (simple issue) the_learner Shell Programming and Scripting 1 05-06-2007 06:34 AM
simple scanf issue ? the_learner High Level Programming 4 04-11-2007 04:51 AM
something simple, but i have no idea: a login issue penguin-friend UNIX for Dummies Questions & Answers 2 03-31-2005 09:05 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2008
the_learner the_learner is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 75
simple issue..

I have a program. Everytime that I run that program ,it prints a disclaimer msg and prompts the user to accept the agreement (i.e: type 'y' or 'n').

Now I want to run the program multiple times with different inputs. So I wrote a script which runs in a loop and calls the program multiple times.

But the program wouldnt execute until someone presses 'y' to accept the disclamer msg. How do I make the script type in a 'y' every time the program prompts for it ?

its a simple shell script.
  #2 (permalink)  
Old 01-17-2008
the_learner the_learner is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 75
sorry, I should have put a better topic.. and I should have posted this in the 'UNIX for beginners' section.. my bad.
  #3 (permalink)  
Old 01-17-2008
Dave Miller's Avatar
Dave Miller Dave Miller is offline
Registered User
  
 

Join Date: Dec 2007
Location: Northern NJ, USA
Posts: 151
If you're accessing your unix system thru a PC running a terminal emulator, use QuickKeys on your PC to 'type' the responses needed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0