<p>Add $1 to the end of the command in your script. This is more a general scripting question. Doesn't have much to do with bitcoin.</p>

<p>~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf $1</p>

CC BY-SA 3.0
2014-09-25T15:01:18.113Z
2014-09-25T15:01:18.113Z
Jannes
<p>I'm trying to create multiple full nodes on a single machine each using a different data directory and static ip's.</p>
<p>My directory layout is</p>
<blockquote>
<p>~/bitcoin1
~/bitcoin2
~/bitcoin3</p>
</blockquote>
<p>For each direcotry I have a bash script named btc(number) with this:</p>
<blockquote>
<p>!/bin/bash
~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf</p>
</blockquote>
<p>With the config files respectively stating the data directories and parameters.</p>
<p>My issue is whenever I try to run a command like &quot;Getinfo&quot;, I have to pass the whole config file argument to the daemon like so:</p>
<blockquote>
<p>~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf getinfo</p>
</blockquote>
<p>How can I make my start up bash script allow the daemon commands as well?</p>
<p>I'd like to achieve this:</p>
<blockquote>
<p>~/bitcoin1/./btc1 getinfo</p>
<p>or btc1 stop</p>
</blockquote>
<p>Thanks!</p>
<p>P.S. Sorry for the formatting. Never posted here before...</p>

<bitcoind><daemon>
Allowing bitcoind startup script to access daemon commands
user19445
# Allowing bitcoind startup script to access daemon commands

(Asked by: username_0 on 2014-09-24)

I'm trying to create multiple full nodes on a single machine each using a different data directory and static ip's.

My directory layout is

> ~/bitcoin1
> ~/bitcoin2
> ~/bitcoin3

For each direcotry I have a bash script named btc(number) with this:

> !/bin/bash
> ~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf

With the config files respectively stating the data directories and parameters.

My issue is whenever I try to run a command like "Getinfo", I have to pass the whole config file argument to the daemon like so:

> ~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf getinfo

How can I make my start up bash script allow the daemon commands as well?

I'd like to achieve this:

> ~/bitcoin1/./btc1 getinfo
>
> or btc1 stop

Thanks!

P.S. Sorry for the formatting. Never posted here before...

**Tags:** bitcoind, daemon


---

## 1 answers

### Answer by username_1 on 2014-09-25. Score: 0 | Accepted answer

Add $1 to the end of the command in your script. This is more a general scripting question. Doesn't have much to do with bitcoin.

~/bitcoin1/bitcoind -conf=~/bitcoin1/.bitcoin/bitcoin.conf $1


---

