Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A barberpole spinner
#11
Not forgetting it, bbj. Never knew it was there. I keep learning new things. ;-)
Reply
#12
(05-11-2016, 07:23 AM)clasqm Wrote: Not forgetting it, bbj. Never knew it was there. I keep learning new things. ;-)

I fixed the usage documentation: https://github.com/bbjimmy/yab-lib/blob/...spinner.md Showing how to use innter application messaging for the spinner. This kind of usage of inter program messaging can make a yab program run as a multi-threaded, multi process program.
Reply
#13
first attempt at a utlity based on Jim's library: https://dl.dropboxusercontent.com/u/1043..._gcc2.hpkg
Reply
#14
How to use the barberppole utility:

I have this Java app that is very slow to boot up as it searches for its constituent parts and calls home to look for updates. when it is done it creates a settings file or updates it if it exists already. We can use that settings file to see if we need to shut down the barberpole.

Code:
#!/boot/system/bin/bash
## who am i? ##
_script="$(readlink -f ${BASH_SOURCE[0]})"
## Delete last component from $_script ##
_base="$(dirname $_script)"
cd $_base
jconvert_run=/boot/home/MSNCurrency.dat
rm -f $jconvert_run
barberpole --alert --msg=Sorry, this Java app takes a while to load. Please wait &
java -Xmx1024m -jar jconvert.jar &
until [ -e  $jconvert_run ]
do
     sleep 1
done
hey barberpole quit
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting