nohup + & 同時執行多行指令 - Linux

Table of Contents

我想使用 nohup & 再背景自動 build code
可是我build code 需要有多行指令

export USERDATA_APK="Facebook_Client";
source build/envsetup.sh; lunch dlx-userdebug DEBUG;
make 2>&1 > make.log


我把上面合併起來變成一行 ,指令前後分別加上nohup , & 包住這些指令

不過還是無法build成功


nohup export USERDATA_APK="Facebook_Client" ;
source build/envsetup.sh; lunch dlx-userdebug DEBUG; make 2>&1 >
make.log &

請問這是什麼原因?

謝謝

--

All Comments

Lauren avatarLauren2015-07-27
這樣只有第一條指令吃到 nohup 最後一條吃到 &