Post
Topic
Board Bitcoin Technical Support
Re: [Back to not solved] Block notify refusing to execute script
by
Automatic
on 08/02/2014, 00:18:31 UTC
and do use an absolute path.

Do not use an absolute path?

Reread, he said do use Wink.

Whoops, well, I've also tried (Which was working till it randomly stopped, includes hashbang to /bin/sh):-
Code:
/home/bitcoin/block.sh %s

I'm unsure how how to use an absolute path of sh or something of the like without quotes, as, the space for the argument would break it:-
Code:
/bin/sh -c /home/bitcoin/block.sh%s

I'd need:-
Code:
/bin/sh -c "/home/bitcoin/block.sh %s"

EDIT:- This was the .conf that worked just fine, until, well, it randomly stopped working without me updating anything (System, .conf, bitcoin, .sh, anything!):-
Code:
rpcuser=no.
rpcpassword=no.
maxconnections=1000
checklevel=4
keypool=10000
rpcallowip=127.0.0.1
server=1
blocknotify=/home/bitcoin/block.sh %s
walletnotify=/home/bitcoin/wallet.sh %s
alertnotify=/home/bitcoin/alert.sh %s