i updated the script so it works with bash on linux:
I've been running it on Linux, and bash is my shell. What version of bitcoind are you running? I pulled the most recent changes from git master this morning, as it had been dying on me lately for no good reason.
had nothing to do with bitcoind, the problem was non existing escaping of [ and ", you probably dont run bash, maybe dash?
Nope...bash is a system package on Gentoo. I have v4.2_p37 on most of my boxen (including the mining/bitcoind/litecoind box).
according to bash syntax [ and " have to be escaped, seems to be some wierd bash version lol
EDIT: err, got it confused, didnt mean bash, ment GNU's sed