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

   Á¶È¸ 3891   Ãßõ 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 937/5684
2015-12   1493805   ¹é¸Þ°¡
2014-05   4957337   Á¤ÀºÁØ1
2020-08   2502   ¼ÛÁøÇö
2020-08   2950   °­Çѱ¸
2020-08   1663   ¾ç¸í¼®
2020-08   3119   ´«ºÎ½Å¾Æħ
2020-08   3186   2CPUI±è¼¼ÈÆ
2020-08   2756   ¹«½î»Ôó·³
2020-08   2656   Á¤¼±»ý
2020-08   11729   ¿¥ºê¸®¿À
2020-08   1964   ¹«½î»Ôó·³
2020-08   2450   GPGPU
2020-08   4583   »ßµ¹À̽½ÇÄÀÌ
2020-08   3892   ÀÌÈñÁÖ
2020-08   2105   ÀÌÁöÆ÷Åä
2020-08   2421   ·¹ÆäÀÌ·¹
2020-08   1773   U3164
2020-08   2618   ±è¿µ±â
2020-08   3051   ÀÌÈñÁÖ
2020-08   3496   ±Þ¿©ÀÏ¿¡¸¸³ª¿ä
2020-08   2582   Astarot
2020-08   3192   ÇÁ¶û