[問題] nohup + & 同時執行多行指令

作者: gigigigi (gigigigi)   2015-07-25 01:43:52
我想使用 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 &
請問這是什麼原因?
謝謝
作者: CP64 (( ̄▽ ̄#)﹏﹏)   2015-07-25 08:59:00
這樣只有第一條指令吃到 nohup 最後一條吃到 &

Links booklink

Contact Us: admin [ a t ] ucptt.com