If the addresses are on the same wallet you can use coin controle to do it manually. or you can od it using a script, this post explains how to do it :
KJJ is saying the path to the PHP executable NOT the script, you have that.
Depending on your system it will most likely be something like
/usr/bin/php /Users/JLP/git_source/src/bin/walletnotify.php %s
if your on a linux-ish system (Mac, linux) you can run `whereis php` and that should tell you
Thanks for clarifying it.
I ran `whereis php` and terminal replied with:
/usr/bin/phpI changed bitcoin.conf so that it has the following:
walletnotify=/usr/bin/php /Users/JLP/git_source/src/bin/walletnotify.php/?trxhash=%s...but it still does not work. I changed it to the following:
walletnotify="/usr/bin/php /Users/JLP/git_source/src/bin/walletnotify.php/?trxhash=%s"...but it still does not work. Does anyone have any suggestions on how to get this to work?
Just set a method in a php file (like in the post) and set walletnotify = /path/to/php /path/to/script.php %s
walletnotify must be set in bitcoin.conf
This is just an example for debian/ubuntu, the language to use will depend on your OS, if you use windows, you could add PHP to your path variable (i suppose) and call it in a cmd environment.
With a script like that, each time you receive a transaction, your wallet will send the tx hash to the script, who will have to treat the information and then sendtoaddress <your address> <the amount received>
This is just a supsition, maybe there are better ways to do it.