The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Batch process photos with Phatch iBot UNIX and Linux RSS News 0 05-01-2008 12:30 PM
rsh as super user without password prompt TheMightyUrrrrf UNIX for Dummies Questions & Answers 1 02-13-2008 10:50 AM
user prompt doesn't pop up with rsh command ronenalalush UNIX for Advanced & Expert Users 1 02-13-2007 06:45 AM
Prompt User for Pgm Output Destination termite Shell Programming and Scripting 0 02-28-2006 12:11 PM
trying to read batch process but need some command help etravels Shell Programming and Scripting 1 11-19-2003 10:48 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 11-16-2006
bond007jlv bond007jlv is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
Question User Prompt during batch script process

The script below performs an incremental database backup. When the increment backup is out of sequence, the process prompts the user:
"Incremental backup out of sequece. Do you wish to continue? Y or N". This script is set to run as a scheduled process in background mode. When the script prompts the user, there is no user to enter a value, thus the background process hangs. Is there a way to pass a N to the process in order to continue processing?


*******************************************
DLC=/database2/dlc/|export DLC
PROMSGS=$DLC/promsgs|export PROMSGS
cd /database/
$DLC/bin/prorest /database/$1 /database/restore/$2
*******************************************
  #2 (permalink)  
Old 11-16-2006
inquirer's Avatar
inquirer inquirer is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 79
sh script.sh <<end
N
end
  #3 (permalink)  
Old 11-30-2006
bond007jlv bond007jlv is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 2
Thank you very much. Your suggestion worked.
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 06:10 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