Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Print processing status in script

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 3 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 Unix and Linux 09-10-2009
Tuxidow Tuxidow is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 8 May 2015, 5:36 AM EDT
Posts: 116
Thanks: 13
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 Unix and Linux 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 3 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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 01:34 PM.