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

   Á¶È¸ 3873   Ãßõ 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 916/5682
2014-05   4954297   Á¤ÀºÁØ1
2015-12   1490786   ¹é¸Þ°¡
2020-08   4228   ¾ØµåÀ¯Àú
2020-08   6523   ÀÌÁöÆ÷Åä
2020-08   3598   Áø½ÅµÎ
2020-08   2134   ¿Ü·Î¿î²þ²þÀÌ
2020-08   3564   ¸®´ª¼­
2020-08   2972   µ¿¹é¿ÀÀÏ
2020-08   2724   ÇູÇϼ¼
2020-08   2807   ±èÁ¦¿¬
2020-08   4922   °­Çѱ¸
2020-08   2413   GPGPU
2020-08   4002   óº¸ÀÚ
2020-08   3110   PCMaster
2020-08   3112   ¸®´ª¼­
2020-08   2676   GPGPU
2020-08   3126   Elsaphaba
2020-08   3676   RIGIDBODY
2020-08   3321   Â¥ºü°ÔƼ¿ä¡¦
2020-08   4564   Çí»çÄÚ¾î
2020-08   1724   ¼­¹öÇÏ°ÅÆÄ
2020-08   3777   GPGPU