On Mon, 2003-09-08 at 15:15, Edward J. Huff wrote: > (while true; do date; > ./stop-freenet.sh; > ./update-unstable.sh; > ./start-freenet.sh 2>&1 \ > | tee /dev/tty \ > | grep -l OutOfMemoryError && \ > (date; sleep 30; date; ./stop-freenet.sh; sleep 60); > done &)
Oops, it didn't work. I need another set of parens:
| (grep -l OutOfMemoryError && \
(date; sleep 30; date; ./stop-freenet.sh; sleep 60));
BTW after trying this, it loaded build 6182, which didn't (yet)
run out of memory after 9 hours uptime, but it looks like it's
about to. When it does, build 6183 will get a try.
Also note that with this running in the background,
./stop-freenet.sh results in downloading latest unstable
and restarting. You have to use ps to find out the process
id of the shell running the while loop and kill that.
Maybe avoiding job control is not such a good idea --
omit the parens before 'while' and after 'done &',
and use jobs, fg, and ^C to stop it.
Also note that I have a symbolic link from freenet.jar to
freenet-unstable.jar (or else start-freenet.sh must start
freenet-unstable.jar directly). Maybe there should be
start-freenet-unstable.sh ...
-- Ed Huff
--
Edward J. Huff <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Devl mailing list [EMAIL PROTECTED] http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl
