Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6176

How can I run different commands in separate terminals using a shell script? [closed]

$
0
0

I have access to an Azure VM where I intend to run threeHyperledger Besu nodes: one boot node and two validator nodes. To automate this setup, I've created a shell script.

First, I checked the terminal emulator by running:

echo "Terminal emulator: $TERM"

The output showed xterm-256color.

Based on this, I attempted to run the following command:

xterm -e "besu --network=devnet --bootnodes --genesis-file=build/uled-local.json --data-path=build/BootNode/node --rpc-http-enabled=true --rpc-ws-enabled=true --rpc-http-port=8552 --rpc-ws-port=8553 --rpc-http-cors-origins=* --host-whitelist=* --rpc-http-api=ETH,NET,WEB3,TXPOOL,DEBUG, --rpc-ws-api=ETH,NET,WEB3 --metrics-enabled=true --metrics-host=0.0.0.0 --tx-pool-max-size=8000 --tx-pool-retention-hours=2 --revert-reason-enabled=true --logging=INFO --rpc-http-host=0.0.0.0 --rpc-ws-host=0.0.0.0 --rpc-http-authentication-enabled=true --rpc-http-authentication-jwt-public-key-file=authKeys/puk.pem; exec bash"

However, I encountered the error xterm: command not found.

I also tried the following command:

xterm -hold -e "publicmint --bootnodes --genesis-file=build/uled-local.json --data-path=build/BootNode/node --rpc-http-enabled=true --rpc-ws-enabled=true --rpc-http-port=8552 --rpc-ws-port=8553 --rpc-http-cors-origins=* --host-whitelist=* --rpc-http-api=ETH,NET,WEB3,TXPOOL,DEBUG, --rpc-ws-api=ETH,NET,WEB3 --metrics-enabled=true --metrics-host=0.0.0.0 --tx-pool-max-size=8000 --tx-pool-retention-hours=2 --revert-reason-enabled=true --logging=INFO --rpc-http-host=0.0.0.0 --rpc-ws-host=0.0.0.0 --rpc-http-authentication-enabled=true --rpc-http-authentication-jwt-public-key-file=authKeys/puk.pem"

But encountered the same error: xterm: command not found.

When I checked for a list of terminals using:

update-alternatives --list x-terminal-emulator

I received the following error:

update-alternatives: error: no alternatives for x-terminal-emulator

Can anyone assist in resolving these errors?


Viewing all articles
Browse latest Browse all 6176

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>