Re: Shell scripting question

From: Trog Woolley (trog_at_email.fake)
Date: 11/07/03


Date: Fri, 7 Nov 2003 08:17:25 +0000 (UTC)

While stranded on the hard shoulder of the information super highway snap12@ibm.com typed:
> Does anyone know how to display a moving character or progress bar in a
> shell script, I have a large shell script which can take some time to run
> and I was to display some activity for the user to see while the script is
> running so they know that the script is doing somthing.

The low tech way is to display these four characters in sequence
| / - \
inside the loop that is taking the most time; position the cursor and
display the next in the sequence. I do have some ksh code somewhere
that does this. If I can find it, I'll post it later.

-- 
Trog Woolley | trog at trogwoolley dot com
(A Croweater back residing in Pommie Land with Linux)
Isis Astarte Diana Hecate Demeter Kali Inanna


Relevant Pages

  • Re: Shell scripting question
    ... Example code for the moving |/-\ would be excellent as this is exactly what ... >> shell script, I have a large shell script which can take some time to ... >> and I was to display some activity for the user to see while the script ... > Trog Woolley | trog at trogwoolley dot com ...
    (linux.redhat)
  • Re: Shell script
    ... > I would like to write a shell script. ... Here's a snip of code that will display a menu and build a selection ... echo "select # of image to burn" ...
    (comp.unix.aix)
  • Re: Displaying code with

    ... >Eric Lindsay wrote: ... >> I can't figure how to best display little snippets of shell script using ... but both> characters display under Moz. ... >The other problem is that under Moz/Linux, the newlines you are ...
    (comp.infosystems.www.authoring.html)
  • Re: Passing parmaters to a shell script
    ... > I have the following shell script: ... > cat t1.sh ... portable commands, some of them even accept options (you can't ... display "-n" then for instance). ...
    (comp.unix.shell)
  • Re: Shell scripting question
    ... > Does anyone know how to display a moving character or progress bar in a ... > shell script, I have a large shell script which can take some time to run ... > and I was to display some activity for the user to see while the script is ... the progress bar updated to the next notch. ...
    (linux.redhat)