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

   Á¶È¸ 3859   Ãßõ 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/5680
2015-12   1483661   ¹é¸Þ°¡
2014-05   4947010   Á¤ÀºÁØ1
2019-04   2888   Á¨111
2018-09   2888   ¹Ú¹®Çü
2023-11   2888   ysm7556
2023-10   2888   chotws
2019-09   2888   ÀÌÀÌÅ©
2020-03   2888   ¹è»ó0¿ø
2021-01   2888   Sakura24
2022-04   2888   ±×¸°
2018-09   2888   ¿ÀƼ½º
2022-06   2888   ¾î·Æ
2018-08   2889   ¸»¶û9
2022-09   2889   º°À̵Ǿî
2017-06   2889   ¹Ù·¥¾²
2020-01   2889   ¸ð½º¿ùµå
2020-03   2889   Á¤ÀǼ®
2023-10   2889   ¸®³ª
2020-09   2889   GPGPU
2020-07   2889   ÁÒ½´¾Æ
2019-01   2889   °£Àå°ÔÀå
2019-03   2889   ±Þ¿©ÀÏ¿¡¸¸³ª¿ä