Search Results

Search: Posts Made By: rbatte1
4,742
Posted By rbatte1
Perhaps consider breaking your code up and having...
Perhaps consider breaking your code up and having a function like this:-#!/bin/ksh
# My code does backups
#

Get_backup_type ()
{
j=0
while [ $j == 0 ]
do
read type?"What level of...
4,742
Posted By rbatte1
So, is ${DATABASES set up as multiple items? You...
So, is ${DATABASES set up as multiple items? You have a while true loop that you are trying to exit with a break and that's where it is getting confused.

Can you try a variation to...
4,742
Posted By rbatte1
You have a space in your read command between the...
You have a space in your read command between the yn? and the quoted prompt. Take this out. I get the following output to the code as posted:-
Do You Wish To Take Database Backup ?? y
YES take...
4,742
Posted By rbatte1
What shell are you in? For me, I'm usually Korn...
What shell are you in? For me, I'm usually Korn shell, ksh so I would craft is like this:-while true ;do
read yn?"Do You Wish To Take Database Backup ?? "
case $yn in
[Yy]*) echo " YES take...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy