![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| how to have a cp progress bar? | wrapster | UNIX for Advanced & Expert Users | 1 | 05-21-2008 02:56 AM |
| Progress | mirusnet | Shell Programming and Scripting | 2 | 01-21-2008 11:26 AM |
| Checking cp progress | MarGur | UNIX for Dummies Questions & Answers | 0 | 05-15-2007 04:13 PM |
| progress bar | sakthi.abdullah | UNIX for Advanced & Expert Users | 4 | 12-08-2006 05:23 AM |
| TAR- Progress bar? | dicko44 | Shell Programming and Scripting | 1 | 09-01-2006 08:11 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
progress bar
i am trying to write a script where in it will connect to remote servers and execute remote scripts to fetch some data and ftp it back to a main server. i would like to add a script where it will show some sort of status bar until such time that the expected files have been recieved.
something like: Getting information on remote servers .................. done! the "." will not stop until the script find those files (more than 1 file) and print the word "done!" when all of them have been received. can someone give me an idea? thanks. ![]() |
|
||||
|
==============================================
: # dot_stat() { let count=0 until test -s "$expect_file" do echo ".\c" let count=$count+1 if test $count -eq 30 then echo echo echo "Some servers you are trying to fetch data is not responding!" echo echo "Try again later!" echo exit 1 fi sleep 1 done echo " done!" ; } echo "Fetching data " rexec remote_server -l user command dot_stat echo ============================================== Thanks, |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|