無法中斷腳本 - Linux
By Jessica
at 2015-03-31T12:29
at 2015-03-31T12:29
Table of Contents
目前的情況是,我同時進行兩個腳本,
a腳本是一個偵測檔案數量腳本,當檔案到一個數量時就會結束(while done),
b腳本是一個無窮迴圈用來進行偵測並存檔,
問題是這樣的,
當a腳本達離開條件,他有完整的做完最後一步驟,
但是此時的b卻無法中斷(ctrl+c),
在此之外,兩個腳本獨立作業都是正常的
請問我是違反了哪項腳本的規定或是有什麼沒注意到的嗎?
謝謝解答唷!!
同時開啟的腳本大概這樣
#!/bin/bashr
./a.sh &
./b.sh
--
Tags:
Linux
All Comments
By Madame
at 2015-03-31T15:48
at 2015-03-31T15:48
By Zora
at 2015-04-03T19:51
at 2015-04-03T19:51
By Lucy
at 2015-04-05T18:39
at 2015-04-05T18:39
Related Posts
IP address 16(hex) ?
By Ophelia
at 2015-03-31T09:47
at 2015-03-31T09:47
防火牆相關書籍
By Delia
at 2015-03-31T00:31
at 2015-03-31T00:31
custom live usb/dvd
By Jake
at 2015-03-31T00:04
at 2015-03-31T00:04
《完全用 GNU/Linux 工作》
By Emma
at 2015-03-30T22:35
at 2015-03-30T22:35
寄信一直退回
By Zenobia
at 2015-03-30T22:20
at 2015-03-30T22:20