2017-06-27 7 views
1

ループ中に無限ループを含むいくつかのbashスクリプトがあります。 私は、単一のスクリプトからそれらのすべてを実行したいと思います:linuxはセントラルスクリプトからいくつかのスクリプトを起動しています

#!/bin/bash 
# rsync using variables 

./agent_monitor.sh 
./engine_monitor.sh 
./kafka_monitor.sh 
./zk_monitor.sh 

私が取得することは、最初のスクリプトに貼り付け、それは同時に、それらを実行するために、次のいずれかに進んでいないということです。

+0

'./agent_monitor.sh&' –

答えて

2
#!/bin/bash 
# rsync using variables 

./agent_monitor.sh & 
./engine_monitor.sh & 
./kafka_monitor.sh & 
./zk_monitor.sh & 

echo "All scripts launched in background" 

お知らせバックグラウンドでそのタスクを実行するように指示します各行の終わりに& symble、。

関連する問題