Advertisement

09.23.2008 at 10:55AM PDT, ID: 23755896
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.7

Bash - Shell Scripting Menu Help - Text Menu --> Visual Menu

Asked by WinPE in Bourne-Again Shell (bash), Scripting Languages, Shell Scripting

I've got the following text menu below (in the code snippet) that creates menu entries based on a std unix file based in this format:
SITE1:DNS1:DNS2:TIMEZONE
SITE2:DNS1:DNS2:TIMEZONE

If possible I wanted to convert it to a more visual menu. Below is a static version of what I'm looking for, I just want the menu entries to be writen dynamicaly. Not sure if this is possible?

prompt_site() {
  TMP=$(mktemp /tmp/domainmenu.XXXXXX)
  trap "[ -f "$TMP" ] && rm -f $TMP" HUP INT QUIT TERM EXIT
  $DIA --backtitle "Blah" --title  \
  "Domain" --menu "Select a site option." \
  0 0 0 $DIA_ESC \
  "1.Site1" \
  "2.Site2" \
  2> $TMP
  answer_site="$(cat $TMP)"
  [ -f "$TMP" ] && rm -f $TMP
case "$answer_site" in
  1.Site1)
      site="SITE1"; dns1=DNS1; dns2=DNS2; TZ=TIMEZONE; ;;
  2.Site2)
      site="SITE2"; dns1=DNS1; dns2=DNS2; TZ=TIMEZONE; ;;
  *)
      prompt_site;;
esac
}Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
prompt_location() {
file_location="${root}/filename"
iter=1
export iter
echo "Please choose a location/site:"
cat $file_location | while read line
do
    sname=`echo $line | cut -d':' -f 1`
    echo "("$iter")"  $sname
    iter=`expr $iter + 1`
done
 
echo -n "[1] "
read snum
 
max=`wc -l $file_location | cut -d ' ' -f 1`
 
if [ $snum -le $max ]
then
    myline=`cat $file_location | head -$snum | tail -1`
    site_name=`echo $myline | cut -d':' -f 1`
    site_dns1=`echo $myline | cut -d':' -f 2`
    site_dns2=`echo $myline | cut -d':' -f 3`
    site_tz=`echo $myline | cut -d':' -f 4`
	clear
else
	[ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
    echo 'Invalid selection'
	[ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
	prompt_location
fi
}
[+][-]09.23.2008 at 12:11PM PDT, ID: 22552870

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 12:13PM PDT, ID: 22552891

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 12:19PM PDT, ID: 22552948

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 12:42PM PDT, ID: 22553194

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 02:02PM PDT, ID: 22554045

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 02:04PM PDT, ID: 22554068

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 02:23PM PDT, ID: 22554266

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 02:25PM PDT, ID: 22554278

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 03:49PM PDT, ID: 22554920

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 04:30PM PDT, ID: 22555334

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 08:25PM PDT, ID: 22556434

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 10:24PM PDT, ID: 22557006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 08:32AM PDT, ID: 22560761

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 11:07AM PDT, ID: 22562317

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 04:50PM PDT, ID: 22565151

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 11:06AM PDT, ID: 22572218

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 03:37PM PDT, ID: 22574672

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 03:40PM PDT, ID: 22574694

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 03:40PM PDT, ID: 22574697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 06:39PM PDT, ID: 22575768

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 06:42PM PDT, ID: 22575784

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 08:15AM PDT, ID: 22580377

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 11:59AM PDT, ID: 22582605

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 12:49PM PDT, ID: 22583081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 12:59PM PDT, ID: 22583162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 01:40PM PDT, ID: 22583580

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 03:47PM PDT, ID: 22584503

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2008 at 03:49PM PDT, ID: 22584533

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.27.2008 at 09:04AM PDT, ID: 22587596

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.27.2008 at 09:05AM PDT, ID: 22587599

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.27.2008 at 10:58AM PDT, ID: 22587952

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Bourne-Again Shell (bash), Scripting Languages, Shell Scripting
Sign Up Now!
Solution Provided By: mikelfritz
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.29.2008 at 07:03AM PDT, ID: 22596481

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628