Bitcoin Forum
July 11, 2024, 04:41:27 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: running bitcoin from the command line  (Read 649 times)
calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
August 23, 2016, 05:56:21 PM
 #1

i am looking to learn more about running bitcoin from the command line, although i am having some problems.

1st: i am not sure if it is bitcoind i run or bitcoin-cli

when i run bitcoind nothing happens it jumps tp the next line and just waits and if i run bitcoin-cli i get help messages.

do i need a conf file? i have been running the GUI for over 9 months

anyhelp would be great thanks  Grin
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 6785


Just writing some code


View Profile WWW
August 23, 2016, 05:58:11 PM
 #2

You have to have two terminals.

The first one you run bitcoind. It should do nothing. You should not see anything, it should just look like it hangs. Don't worry, nothing is wrong, that is what is supposed to happen. If there is any output, that is usually a problem.

The second terminal you use bitcoin-cli to interact with the bitcoind you started in the other terminal. This one is where you do all of your commands.

calkob (OP)
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 520


View Profile
August 23, 2016, 06:11:13 PM
 #3

Cheers Knight, works like a treat  Grin

why is this so hard to find out, ive been google searching this for an hour....lol  Cheesy
tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1079


I may write code in exchange for bitcoins.


View Profile
August 23, 2016, 06:16:08 PM
 #4

You have to have two terminals.

The first one you run bitcoind. It should do nothing. You should not see anything, it should just look like it hangs. Don't worry, nothing is wrong, that is what is supposed to happen. If there is any output, that is usually a problem.

The second terminal you use bitcoin-cli to interact with the bitcoind you started in the other terminal. This one is where you do all of your commands.

You should be able to use the same terminal.  Just kick off bitcoind so that it will run in the background and your shell will give you the prompt back.  Ie, run:

Code:
$ bitcoind &

Instead of just

Code:
$ bitcoind
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!