(â» ãã®è¨å®ãæå³ãæã¤ã®ã¯Mountain Lionã¾ã§ã§ã)
OSXã¯ãã£ã¹ã¯ãã£ãã·ã¥ãç©æ¥µçã«è¡ããããå¾åã«ããããã§ãã¦ã
ç©çã¡ã¢ãªãä¸è¶³ããæã«ããã£ã¹ã¯ãã£ãã·ã¥(âç¾å¨é使ç¨ä¸ã®ã¡ã¢ãª)解æ¾ãããããã
ã¹ã¯ããé åãåªå
ãã¦ãã¾ã模æ§ã§ãã
ã§ãã¡ã¢ãªé åããå®æçã«èªåéæ¾ããã¦ãããã¢ããªãæ¢ããã®ã§ããã
ãã¼ããã¢ããªããªããï¼æåã®ãã®ããç¡ãï¼
AutoPurge
http://itunes.apple.com/jp/app/autopurge/id480739949?mt=12
ããããµããããªã´ã«ã¡ã¼ï¼ï¼
ã¨ãããã¨ã§ãèªåã§ãµã¯ã£ã¨è¨å®ã
æé ã¯æ¬¡ã®éãã§ããããããã解説ãä»ãã¦ã¿ã¾ããã
Xcodeãã¤ã³ã¹ãã¼ã«ãã
AppStoreãèµ·åãã"Xcode"ãæ¤ç´¢ãã¦ãã¤ã³ã¹ãã¼ã«ãã¦ä¸ããã
ã¿ã¼ããã«ãèµ·åãã
Xcodeãã¤ã³ã¹ãã¼ã«ããã¨ãpurgeã¨ããæ©è½ã使ããããã«ãªãã¾ãã
ããããã¢ãã¿ã¼ããã«ããå®è¡ãã¦ã¿ã¾ãããã
ã¿ã¼ããã«ãèµ·åãã"purge"ã¨å
¥åãã¦ã¨ã³ã¿ã¼ãæ¼ãã¦ã
ä½ãã¨ã©ã¼ãåºãªããã°purgeã®ã¤ã³ã¹ãã¼ã«ã¯æåãã¦ãã¾ãã
crontabãèµ·åãã
ãã¦ãã³ã³ãããã¡ãã£ã¨é£ãããï¼ç¥ããªãæ¹ã«ã¨ã£ã¦ã¯ï¼
ã¾ããã¿ã¼ããã«ã§
crontab -e
ã¨å ¥åãã¦ã¨ã³ã¿ã¼ãæ¼ãã¾ãã
ããã¨æ¬¡ã®æ§ãªç»é¢ã«ãªãã¨æãã¾ãã
crontabãç·¨éãã
ãã¼ãã¼ãã®iãæ¼ãã¾ãã
ããã¦ã次ã®æåãã¯ãªãããã¼ããããã®ã¾ã¾è²¼ãä»ãã¦ä¸ããã
*/15 * * * * /usr/bin/purge
è²¼ãã¤ãããã¨ã³ã¿ã¼ãæ¼ãã¾ãã
ããã¨æ¬¡ã®ããã«ãªã£ã¦ããã¯ãã
ããã§ã次ã®é çªã§ãã¼ãæ¼ãã¾ãã
- ã¨ã¹ã±ã¼ã(esc)
- ã³ãã³(:)
- w
- q
ããã¨æ¬¡ã®ããã«ãªã£ã¦ããã¯ãã
å·¦ä¸ã«
:wq
ã¨è¡¨ç¤ºããã¦ããã°OKã§ãã
ããã¦ã¨ã³ã¿ã¼ãæ¼ãã°ãããä½æ¥å®äºï¼ã¿ã¼ããã«ã¯éãã¦æ§ãã¾ããã
ããã§ãå®æçã«èªåã§ã¡ã¢ãªã解æ¾ãããããã«ãªãã¾ãã
ããä½ããã¹ãããå ´åãã¨ã¹ã±ã¼ããã¼ã1,2åæ¼ãã¦ãã
uãä½åº¦ãæ¼ãã¨æåã®ç¶æ
ã«æ»ãã®ã§ãä½åº¦ã§ãããç´ãOKã
ã¡ãã£ã¨è§£èª¬
å ã»ã©æå®ããæååã
*/15 * * * * /usr/bin/purge
ã¯ãã15åããã«purgeãå®è¡ãããã¨ããæå³ã«ãªãã¾ãã
Unixç³»OSã«ã¯cronã¨ãããç¹å®ã®å¦çãå®æå®è¡ãããµã¼ãã¹ãããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ããã¦ããããã§ããã
ããã«å¯¾ãã¦æ示ãä¸ããã®ãä¸è¨ã®æé ã§ããcrontabã¨ããã®ã¯ãcronã¸ã®æ示ä¸è¦§ã ã¨æã£ã¦ããããã°OKã
ããã15åãããããªãã¦5åããã«purgeããããã¨ãããã¨ã§ããã°ã
å
ã»ã©ã®æååã®ä»£ããã«
*/5 * * * * /usr/bin/purge
ãè²¼ãã¤ããã°OKã§ãã
ããå°ã詳ããè¨æ³ã«ã¤ãã¦ã¯ãã¡ããåç
§ã
http://www.server-memo.net/tips/crontab.html