<p>Is there any way to "print to file" the queried results of the bitcoin-cli. This would be most helpful in my basic cross platform integration of a program I am making with QB64.</p>

CC BY-SA 4.0
2018-09-29T00:52:31.443Z
Can't you just redirect the output to a file? `bitcoin-cli getblockchaininfo > out.txt`
Raghav Sood
CC BY-SA 4.0
2018-09-30T08:40:26.150Z
I'm voting to close this question as off-topic because it is really about programming in a variant of Quick-Basic, specifically how in QuickBasic to capture the STDOUT of an external program run in a `shell` statement. See https://stackoverflow.com/questions/41305926/how-to-pipe-stdout-and-stdin-to-qbasic-program.
RedGrittyBrick
<bitcoind><bitcoin-cli>
Is there a "print to file" parameter or its equivalent for bitcoin-cli; so that results from the daemon are recorded
James
# Is there a "print to file" parameter or its equivalent for bitcoin-cli; so that results from the daemon are recorded

(Asked by: username_0 on 2018-09-29)

Is there any way to "print to file" the queried results of the bitcoin-cli. This would be most helpful in my basic cross platform integration of a program I am making with QB64.

**Tags:** bitcoind, bitcoin-cli

> **Comments:**
> **username_1**: Can't you just redirect the output to a file? `bitcoin-cli getblockchaininfo > out.txt`  
> **username_2**: I'm voting to close this question as off-topic because it is really about programming in a variant of Quick-Basic, specifically how in QuickBasic to capture the STDOUT of an external program run in a `shell` statement. See https://stackoverflow.com/questions/41305926/how-to-pipe-stdout-and-stdin-to-qbasic-program.  

---

## 0 answers

