A barberpole spinner
#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


Messages In This Thread
A barberpole spinner - by bbjimmy - 05-05-2016, 10:58 AM
RE: A barberpole spinner - by clasqm - 05-07-2016, 02:57 PM
RE: A barberpole spinner - by bbjimmy - 05-07-2016, 07:21 PM
RE: A barberpole spinner - by clasqm - 05-08-2016, 08:02 AM
RE: A barberpole spinner - by clasqm - 05-08-2016, 09:40 AM
RE: A barberpole spinner - by bbjimmy - 05-08-2016, 12:43 PM
RE: A barberpole spinner - by clasqm - 05-09-2016, 04:40 PM
RE: A barberpole spinner - by bbjimmy - 05-09-2016, 09:46 PM
RE: A barberpole spinner - by clasqm - 05-10-2016, 11:12 AM
RE: A barberpole spinner - by bbjimmy - 05-10-2016, 02:02 PM
RE: A barberpole spinner - by clasqm - 05-10-2016, 03:23 PM
RE: A barberpole spinner - by bbjimmy - 05-11-2016, 09:21 AM
RE: A barberpole spinner - by clasqm - 05-13-2016, 02:08 PM
RE: A barberpole spinner - by clasqm - 05-17-2016, 11:11 AM

Forum Jump:


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