Re: Shell scripting question

From: Will (snap12_at_ibm.com)
Date: 11/07/03


Date: Fri, 07 Nov 2003 13:35:48 GMT

Example code for the moving |/-\ would be excellent as this is exactly what
I am looking for !

Thanks

"Trog Woolley" <trog@email.fake> wrote in message
news:bofkel$9pn$1$8300dec7@news.demon.co.uk...
> 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
    ... > 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 ... Trog Woolley | trog at trogwoolley dot com ...
    (linux.redhat)
  • Re: Why interlaced HDTV?
    ... The moving object will be in a different position on the second field to the first. ... If you show that same progressive frame several times then motion produces the perception of several images of the object in the scene that is moving. ... For example, 50Hz-720p on a 100Hz display with the simple frame repetition that you describe, will produce double images of moving objects. ... A 50Hz camera sees the position of the object every 20mS on the time axis - so mark dots along the line representing the position that the camera sees. ...
    (uk.tech.digital-tv)
  • Re: Blu-ray promises more than special menus
    ... displays the picture as it was captured. ... Consider a telephone pole moving across the screen. ... The display shows it as ... the eyes tracking the apparently smooth motion on a screen can ...
    (alt.tv.tech.hdtv)
  • Re: A380 whoops
    ... If they did all have ADS-B what's the likelihood of using its display to ... steer rather than looking outside? ... congested area. ... Of course, once teh beast gets moving, it's not going to want to stop. ...
    (rec.aviation.military)
  • Re: Which event to use for this?
    ... (in other words, if you display this message, what is supposed to happen?). ... for the current mess, you need to find and fix those records. ... moving along through some records unless they made changes to that ...
    (microsoft.public.access.formscoding)