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

   Á¶È¸ 3847   Ãßõ 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 932/5678
2015-12   1477472   ¹é¸Þ°¡
2014-05   4940612   Á¤ÀºÁØ1
2019-12   2877   ¸®Àå´Ô
2019-08   2877   ÇÁ·Î½Ã¾Æ
2020-10   2878   fmkldmfkl
2019-10   2878   ¿À¼º±â
2019-10   2878   À̹®¿µ
2020-12   2878   Noman
2021-04   2878   ¹Ì´ã
2019-07   2878   ³Ä¹Ì³Ä¹Ì
2021-03   2878   1ȸ¿ë
2020-04   2878   ½É¿ìö
2017-06   2878   ¹«¾Æ
2018-10   2878   ±èÁø¿µJK
2020-03   2878   ¹è»ó0¿ø
2019-07   2878   Mazenda
2019-09   2878   ¿©ÁÖ³ó¹Î76
2020-09   2878   IRIX6530
2023-04   2879   inquisitive
2018-10   2879   ³ªÀ̾¥guy
2019-12   2879   ºí·ç¿µ»ó
2020-05   2879   ÆÄÇÇǪÆä