看板 [ Linux ]
討論串[問題] proecess間的mutual exclusive RW
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者jlovet (偷拿程式碼的八卦)時間16年前 (2010/03/17 22:25), 編輯資訊
0
0
0
內容預覽:
#!/usr/bin/env tcsh. while(`cat file | wc -l`). set tmp=`echo $$%200 | bc`. mv file $tmp. if($? == 0) then. echo $tmp. head -n1 $tmp. sed -e '1d' $tmp

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者WindChris (風)時間16年前 (2010/03/17 21:10), 編輯資訊
0
0
0
內容預覽:
請教一下. 一篇文章. 讓十個process去read. 一個process一次讀一列出來. 怎麼在shell script下保證這十個process不會讀到同樣的列. EX:每支process的內容. while(`cat file | wc -l`). head -n1 file; sed -i
首頁
上一頁
1
下一頁
尾頁