Closed anon-127 closed 2 years ago
That is not how multicall works, passing the hash is implicit.
even d.name
won't work.
d.multicall2=main,(cat, "my_log=", $d.name= )
Try d.multicall2=main,my_log=$d.hash=
instead.
this also didn't work.
I could never get multicall to work properly
It worked just fine for me, here are the exact steps I did:
$ wc -l /tmp/mylog # Just to show it doesn't exist yet
wc: /tmp/mylog: No such file or directory
$ rtxmlrpc -i 'method.insert = my_log, simple|private,"execute.throw = sh, -c, (cat
, \"echo \", (argument.0) , >>/tmp/mylog)"'
0
$ rtxmlrpc -i 'd.multicall2=main,my_log=$d.hash='
0
$ wc -l /tmp/mylog # Now contains the hashes
88 /tmp/mylog
The same thing should also work when done via Ctrl-x or in a config file. Many clients (e.g. ruTorrent) depend heavily on d.multicall, it's a little confusing but in no way broken.