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