ã·ã§ã«ã¹ã¯ãªããã¯æåéãã®é次å®è¡
ç¥ãåãã«æ°ã«ãªã£ããã¨ãææãããï¼
ãã·ã§ã«ã¹ã¯ãªããã¯å®è¡ä¸ã«ã¹ã¯ãªãããå¤æ´ããã¨ï¼å¤æ´ãããã¹ã¯ãªããéãã«åããã¨ãããã®ã§ããï¼
ããªãã¨ããããï¼ã¹ã¯ãªããã¯å®è¡æã«ã¡ã¢ãªã«èªã¿è¾¼ã¾ãããã§ãï¼ã¨æãè¾¼ãã§ããã®ã§ï¼æ©é調ã¹ã¦ã¿ãï¼
åæä½æ¥ãããã®ã§è¤æ°ç«¯æ«ãç«ã¡ä¸ãããï¼screenã使ããï¼emacsã®shellã¢ã¼ãã使ãï¼
以ä¸ã®ãããªã¹ã¯ãªãããæ¸ãï¼
# test.sh echo "start" sleep 5 echo "1" sleep 5 echo "2" sleep 5 echo "3" sleep 5 echo "4" echo "done"
å®è¡ããï¼
% sh test.sh start
ããããä¸è¨ã³ã¼ãã®æå¾ã®è¡ãã³ã¡ã³ãã¢ã¦ã
# test.sh echo "start" sleep 5 echo "1" sleep 5 echo "2" sleep 5 echo "3" sleep 5 # echo "4" echo "done"
4ãåºåãããã®ããã©ãã©ãããªããå¾ ã¤ï¼
% sh test.sh start 1 2 3 done %
ãªãã¨4ã¯è¡¨ç¤ºãããªãã£ãï¼ã¤ã¾ãï¼ã·ã§ã«ã¹ã¯ãªããã¯1è¡ãã¤ãã¡ã¤ã«ããèªã¿è¾¼ã¿ãªããé次å®è¡ãã¦ããã¨èããããï¼
PerlãRubyãªã©ã®ã¹ã¯ãªããè¨èªã¯ã©ããªã®ã ããï¼Perlã¯ã³ã³ãã¤ã«ãã¦ããã®ã§å®è¡æã®ããã°ã©ã ã©ããã®æåã示ãã«éããªãï¼
確èªããã¨ããï¼PerlãRubyã§ã¯å®è¡æã®ããã°ã©ã ãã®ãã®ã®æåã示ããï¼
ã¨ããããã§ï¼ã¿ã¤ãã«ã«ããéãã·ã§ã«ã¹ã¯ãªããã¯æåéãã¹ã¯ãªãããä¸è¡ãã¤èªã¿è¾¼ãã§é次å¦çãã¦ããï¼
åé¡ã«ãªãå¯è½æ§ã¯ä½ãã¨æãããã©ï¼ãªããªãé¢ç½ããã¨ãç¥ããã¨ãã§ããï¼