简体   繁体   中英

Open another terminal to execute a command with ongoing aoutput in bash script - how continue the bash script?

I have a bash script which starts two local blockchain nodes instead of saving the output into a log file, i want to open a terminal for printing it continuously on the terminal:

I tried

konsole --noclose -e blockchain start

but then the bash script does not continue to the next command in the script.

Any ideas how to keep the script running while opening 2 terminals with ongoing output?

You can achieve this by putting an & on the end of the command:

konsole --noclose -e blockchain start &

This flags to the shell that it should execute the command in the background in a subshell. The effect is that the shell doesn't wait for the command to finish, and continues immediately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM