Bitcoin Forum
September 28, 2024, 08:16:41 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: [Back to not solved] Block notify refusing to execute script on: November 18, 2014, 05:00:26 PM
Ok, wow...

So do you specify this in the conf file
Code:
blocknotify=/home/bitcoin/block.sh %s

and in the block.sh file:
Code:
#!/bin/sh
code goes here

not sure if I should use dh or bash and if I should call the .sh file direct or via blocknotify=/bin/sh /home/bitcoin/block.sh %s

How are you doing this?
2  Bitcoin / Bitcoin Technical Support / Re: [Back to not solved] Block notify refusing to execute script on: November 18, 2014, 10:39:28 AM
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<SpaceHereWouldBreakArgumentsBeingParsedToTheBashScript>%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


I have the exact same problem. Did you solve it?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!