You will have to make it executable by root, and put it somewhere on roots path.
shane c branch wrote:
Guy Fraser wrote:
as root :
time while sleep 900 ; do if up2date --nox -uv | grep Error >/dev/null ; then echo -n . ; else break ; fi ; done
This will keep trying until successfull, wait ing 15 minutes between attempts.
RH changed up2date so it always appears to succeed, so my old script wouldn't work anymore. The "| grep Error >/dev/null" will only
be true if an error occurs, so if an error doen't occur "else break" will take us out of the loop, and were finished.
Good luck
PS somehow my Alert Icon had disappeared from my toolbar ;(
I am running this script now, so weel see how long it takes to get a connection.
sweet. being that i am new to custom scripts, what do i need to do to drop that in an executable file? just fire up vi and enter your text as written? do i need to save the file with particular extension?
-- Guy Fraser Network Administrator The Internet Centre 780-450-6787 , 1-888-450-6787
There is a fine line between genius and lunacy, fear not, walk the line with pride. Not all things will end up as you wanted, but you will certainly discover things the meek and timid will miss out on.
#!/bin/sh while { sleep 10 ; } do { if { up2date --nox -uv | grep Error >/dev/null ; } then { echo -n . ; } else { break ; } fi ; } done