yesmani
September 10, 2009, 2:47am
1
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
Tuxidow
September 10, 2009, 4:17am
2
Not Sure you want it like the following or not
yesmani:
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
yesmani
September 10, 2009, 5:12am
3
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,,