cron ¸í·É¾î ÀÚµ¿½ÃÀÛ Áú¹®µå·Á¿ä

   Á¶È¸ 3862   Ãßõ 0    

 멀린펌의 JFFS파티션을 활성화하여 특정 스크립트를 일정시간마다 항상 실행시키기 위해


test@RT-AC68U-11C8:/tmp/home/root# cru a ChkWAN "*/5 * * * * /jffs/scripts/ChkWAN.sh"

test@RT-AC68U-11C8:/tmp/home/root# cru l

*/5 * * * * /jffs/scripts/ChkWAN.sh #ChkWAN#


위와 같은 명령어로 5분마다 ChkWAN.sh 스크립트가 5분마다 실행되게끔 설정해두었습니다.

이제는 라우터 재부팅시마다 위 스크립트가 자동 실행되게끔 해줘야 하는데 터미널에 어떻게 입력해줘야 할까요?


ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
ItsJaemin 2020-08
init-start¿¡ µî·ÏÇÏ¸é µÈ´Ù°í Çϳ׿ä

https://blunzl.tistory.com/359
     
ÀÌÈñÁÖ 2020-08
admin@RT-AC68U:/tmp/home/root# cru a ChKWAN "*/10 * * * * /jffs/scripts/ChKWAN/ChKWAN.sh"

admin@RT-AC68U:/jffs/scripts# echo '#!/bin/sh' > /jffs/scripts/init-start

admin@RT-AC68U:/jffs/scripts# echo 'cru a ChKWAN "*/10 * * * * /jffs/scripts/ChKWAN/ChKWAN.sh"' >> /jffs/scripts/init-start

admin@RT-AC68U:/jffs/scripts# chmod a+x /jffs/scripts/init-start

À§¿Í °°ÀÌ ¼³Á¤ÇßÁö¸¸ ¹ÝÀÀÀÌ ¾ø½À´Ï´Ù.
»ç¿ëÇÏ°íÀÚ ÇÏ´Â ½ºÅ©¸³Æ®´Â https://github.com/MartineauUK/Chk-WAN/tree/d338debc4f114bd449233fe8d7e2261d70151bafÀÔ´Ï´Ù.
ItsJaemin 2020-08
À½ ¸Ö¸°ÆßÀ̶ó´Â°É ´Ù·ïº»ÀûÀÌ ¾ø¾î¼­.... ¤¾¤¾
À¯´Ð½º³ª ¸®´ª½º ºñ½º¹«¸® ÇÑ°Å °°Àºµ¥, ¸Ö¸°Æß¿¡´Â vi °°Àº°Å ¾ø³ª¿ä?

cat ¸í·ÉÀ¸·Î init-start ³»¿ëÀ» Çѹø ºÁ¾ßµÉ°Í °°³×¿ä
     
ÀÌÈñÁÖ 2020-08
/jffs/scripts$ cat init-start
#!/bin/sh
cru a ChKWAN "*/10 * * * * /jffs/scripts/ChKWAN/ChKWAN.sh"

È®ÀÎÇغ¸´Ï µî·ÏÀº µÇ¾î ÀÖ½À´Ï´Ù.
¸®´ª½ºÀÌ°í ºÎÆÃÇÒ¶§ ½ÇÇàÇÏ·Á¸é...

rc.local ½Ã¸®Áî¿¡ ³Ö¾îµÎ¾îµµ µË´Ï´Ù~
     
ÀÌÈñÁÖ 2020-08
¸®´ª½ºÀ̱â´Â ÇÏÁö¸¸ ¸Ö¸°Æß¿¡¼­´Â ÇØ´ç µð·ºÅ丮°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù..¤¾¤¾
¹Ú°æ¿ø 2020-08
     
ÀÌÈñÁÖ 2020-08
°¨»çÇÕ´Ï´Ù!!! ÀÌÁ¦°ÅÀÇ ´Ù¿Ô³×¿ä¤¾ µåµð¾î ³¡ÀÌ º¸ÀÔ´Ï´Ù¤¾¤¾¤¾¤¾


QnA
Á¦¸ñPage 934/5682
2015-12   1487670   ¹é¸Þ°¡
2014-05   4951019   Á¤ÀºÁØ1
2020-08   4189   ¸¸»ç¿ÀÄÉÀÌ
2020-08   4256   koreaunivlab
2020-08   2357   ĵÀ§µå
2020-08   7530   adioshun
2020-08   1923   VSPress
2020-08   2409   Àç¿ø
2020-08   3161   VSPress
2020-08   2594   ºí·ç¸ð¼Ç
2020-08   3726   MinGi
2020-08   3841   2CPUI±è¼¼ÈÆ
2020-08   2852   DDDIE
2020-08   2861   ¾ØµåÀ¯Àú
2020-08   2520   ÇູÇϼ¼
2020-08   2418   Qsik
2020-08   2918   ÇÁ¶û
2020-08   2108   ¸£³ªÇ®½º
2020-08   2819   ÀÌÁöÆ÷Åä
2020-08   3300   Á¤ÀǼ®
2020-08   2494   ¼ÛÁøÇö
2020-08   2940   °­Çѱ¸