GNU parallel ãæ¬çªç°å¢ã§ä½¿ã£ã¦ã¿ã¾ããã æ¬çªç°å¢ã§ã¯ã10 å°ç¨åº¦ãã Apache ã®ã¦ã§ããµã¼ãã®ã¢ã¯ã»ã¹ãã°ã mod_log_rotate 㧠1 æéãã¨ã«åºåãã¦ããããå¦çã®ãµã¼ãã§éãã¦ãã¾ãã æåã¯ãã·ã§ã«ã¹ã¯ãªããã§ã次ã®ããã«ãã¦ãã¾ããã 次ã®ä¾ã¯ã¦ã§ããµã¼ãã s1 ã s10 ã¾ã§ãã£ã¦ã$LOG_DIR/$LOGFILE ã« 1 æéãã¨ã«åºåããã¢ã¯ã»ã¹ãã°ãããã¨æ³å®ãã¦ãã¾ããå½ç¶ãªãããä¸è¨ã®ã·ã§ã«ã¹ã¯ãªããã®å®è¡ã¦ã¼ã¶ã§å¯¾è±¡ã®ãµã¼ã㸠SSH çµç±ã«æ¥ç¶ã§ãããã®ã¨æ³å®ãã¦ãã¾ãã for s in s1 s2 s3 s4 s5 s6 s7 s8 s9 s10; do ssh -q $s "test -f $LOG_DIR/$LOG_FILE" RETVAL=$? if [ $RETVAL -eq 0 ]; then rsync -
{{#tags}}- {{label}}
{{/tags}}