Print processing status in script | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Print processing status in script

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-10-2009
yesmani yesmani is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 28 April 2011, 2:18 AM EDT
Posts: 17
Thanks: 0
Thanked 2 Times in 1 Post
Print processing status in script

I have a script n which i have line like this

echo "enter option"
retrive
cat /tmp/file1

in the above "retrive" is a function that performs some operaion and writes the o/p to a file and i will cat the file after that. the operation of "retirve" will take some time and i need to print the status while it is processing ...

say the print should be "retriving data ......" until it completes.. pl suggest
Sponsored Links
    #2  
Old 09-10-2009
Tuxidow Tuxidow is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 8 July 2014, 8:01 AM EDT
Posts: 111
Thanks: 12
Thanked 1 Time in 1 Post
Not Sure you want it like the following or not

Quote:
Originally Posted by yesmani View Post
I have a script n which i have line like this

echo "enter option"
echo "retriving data ......"
retrive
if [ $? -eq 0 ]; then
echo "Retrieving files completed"
fi
cat /tmp/file1

in the above "retrive" is a function that performs some operaion and writes the o/p to a file and i will cat the file after that. the operation of "retirve" will take some time and i need to print the status while it is processing ...

say the print should be "retriving data ......" until it completes.. pl suggest
Sponsored Links
    #3  
Old 09-10-2009
yesmani yesmani is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 28 April 2011, 2:18 AM EDT
Posts: 17
Thanks: 0
Thanked 2 Times in 1 Post
Thanks for ur reply,,

i am actually trying to print the the status continuoslu until it ends,,,

something like "status bar" which will indicate dots[printing dots] until the operation is in progress,,
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to check status of a PID zeekblack Shell Programming and Scripting 14 10-03-2006 03:09 PM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Red Hat 5 07-14-2006 02:53 PM
printer status for print spooler: help rage Programming 0 11-13-2003 09:08 AM
status of perl script in another ... jo_aze Shell Programming and Scripting 4 08-05-2003 08:19 AM
Couldn't open status file /var/samba/STATUS.LCK macdonto UNIX for Dummies Questions & Answers 2 08-08-2001 08:42 AM



All times are GMT -4. The time now is 06:21 AM.