The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2002
inquirer
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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.

  #2 (permalink)  
Old 11-25-2002
inquirer
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
just got the answer

sorry...

i just got the answer using...

until loop.

sorry for the inconvinience

  #3 (permalink)  
Old 11-25-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Could you post your answer for the less enlightened or program challenged???

We are trying to create a DB here for users to search for answers.

Thanks bunches!!
  #4 (permalink)  
Old 11-26-2002
inquirer
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
==============================================
:
#

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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0