Terminating transaction-cli

0 votes

I am using ruby script to download bitcoin bootstrap.dat file.

#!/usr/bin/ruby env

`transmission-cli https://bitcoin.org/bin/blockchain/bootstrap.dat.torrent`

Now I run that script

root@master:~# ruby demo

The script is getting hanged and the file is not getting download.

Aug 20, 2018 in Blockchain by digger
• 27,640 points
37 views

1 answer to this question.

0 votes

You can use the -f, -finish <script> which executes a script when the download is completed:

tmpfile=$(mktemp)

chmod a+x $tmpfile

echo "killall transmission-cli" > $tmpfile

transmission-cli -f $tmpfile your.torrent

You could also use rtorrent which has more options.

answered Aug 20, 2018 by slayer
• 29,050 points

Related Questions In Blockchain

+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,080 points
68 views
+1 vote
1 answer

Transaction using Blockchain wallet APi

Each transaction requires a fee to be ...READ MORE

answered Jun 19, 2018 in Blockchain by Perry
• 17,020 points
47 views
0 votes
0 answers

What happens to the ethereum mempool transaction of uncle and fork nodes

I understand that in Bitcoin network when ...READ MORE

Apr 7, 2018 in Blockchain by Christine
• 15,790 points
103 views
+1 vote
4 answers
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
138 views
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

Ethereum wallet not able to make transaction

I can see that the nonce you ...READ MORE

answered Aug 9, 2018 in Blockchain by slayer
• 29,050 points
35 views