Advertisement

08.18.2006 at 10:24PM PDT, ID: 21960065
[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!

6.2

Bash script animation

Asked by operation1611 in Linux Programming

Tags: , ,

i implement a simple bash script as below:

#!/bin/sh

<scp command to copy folder to Server B >
<ssh remote restart mysql to Server B >

sleep3


<scp command to copy folder to Server C >
<ssh remote restart mysql to Server C >

sleep3


<scp command to copy folder to Server D >
<ssh remote restart mysql to Server D >

#################################

How do I can make my script to be more animation such as below:

#!/bin/sh
[Print on screen status "Scripting is starting...", the "..." is animated until the third dot. ]
[Print on screen status "Copying to Server B...", the "..." is animated until the third dot. ]
<scp command to copy folder to Server B > <--- currently i can see listing of file being copy on screen, how to make it invisbile and user only see the percentage animation?
[Print on screen animated percentage of job processing. ex: |||||||||||||  60 %]
[Print on screen status "Restart Server B MySQL...", the "..." is animated until the third dot. ]
<ssh remote restart mysql to Server B >

sleep3

[Print on screen status "Copying to Server C...", the "..." is animated until the third dot. ]
<scp command to copy folder to Server C > <--- currently i can see listing of file being copy on screen, how to make it invisbile and user only see the percentage animation?
[Print on screen animated percentage of job processing. ex: |||||||||||||  60 %]
[Print on screen status "Restart Server C MySQL...", the "..." is animated until the third dot. ]
<ssh remote restart mysql to Server C >

sleep3

[Print on screen status "Copying to Server D...", the "..." is animated until the third dot. ]
<scp command to copy folder to Server D > <--- currently i can see listing of file being copy on screen, how to make it invisbile and user only see the percentage animation?
[Print on screen animated percentage of job processing. ex: |||||||||||||  60 %]
[Print on screen status "Restart Server D MySQL...", the "..." is animated until the third dot. ]
<ssh remote restart mysql to Server D >

[Print on screen status "Scripting is finished...", the "..." is animated until the third dot. ]
#################################

note: i want to do grab the log activity of any failed transfer to /var/log/script.log...but i think it much hard to be done..
Start Free Trial
[+][-]08.19.2006 at 04:06AM PDT, ID: 17347504

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.19.2006 at 07:06AM PDT, ID: 17347897

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.19.2006 at 07:15AM PDT, ID: 17347922

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.19.2006 at 11:43AM PDT, ID: 17348735

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.19.2006 at 12:23PM PDT, ID: 17348871

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.20.2006 at 10:00PM PDT, ID: 17353708

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2006 at 12:20AM PDT, ID: 17354038

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2006 at 07:50AM PDT, ID: 17364291

View this solution now by starting your 7-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

Zone: Linux Programming
Tags: bash, script, scp
Sign Up Now!
Solution Provided By: noci
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.25.2006 at 09:38AM PDT, ID: 17390911

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2006 at 09:54AM PDT, ID: 17391049

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2006 at 10:00AM PDT, ID: 17391100

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2006 at 10:04AM PDT, ID: 17391133

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2006 at 10:38AM PDT, ID: 17391382

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2006 at 11:07AM PDT, ID: 17391568

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32