Á¦°¡ ¸¸µç shell script¸¦
CrontabÀ¸·Î ½ºÄÉÁÙÀ» ±¸¼ºÇÏ·Á°í ¼³Á¤À» Çß½À´Ï´Ù.
½ÇÇàÀº µÇ´Âµ¥ ¹ÙÀ̳ʸ® ½ÇÇàÀº ¾ÈµË´Ï´Ù.
Áï
¸¸µç ½ºÅ©¸³Æ®¿¡ binary ½ÇÇàÇÁ·Î±×·¥ÀÌ µé¾î Àִµ¥
±×ºÎºÐ¸¸ ½ï »©°í ½ºÅ©¸³Æ®°¡ ½ÇÇàµË´Ï´Ù.
¹°·Ð ¹Ù·Î Á÷Á¢ ½ÇÇàÇÏ¸é ´Ù µË´Ï´Ù.
cent OS±¸¿ä
»èÁ¤µÈ ½ºÅ©¸³Æ®´Â csh ·Î¸¸µé¾ú½À´Ï´Ù
¿ÖÀÌ·²±î¿ä..
ex> * * * * * root /home/scseol/firm6.sh >/dev/null & sleep 30; /home/scseol/firm6.sh >/dev/null; (30Ãʸ¶´Ù Á¦°¡ ¸¸µé¾î µÐ ½©½ºÅ©¸³Æ®¸¦ ½ÇÇà½Ãŵ´Ï´Ù.)
binary À̸§¸¸ »ç¿ëÇϼ̴ÂÁö¿ä?
cronjob½Ã¿¡´Â fullpath(°æ·Î+ÆÄÀϸí)·Î Àû¾îÁֽðųª
ÇØ´ç °èÁ¤ÀÇ .profile(shell ¸¶´Ù ´Ù¸£ÁÒ...)À» ½ÇÇà½ÃÄѼ PATH°ªÀ» Àû¿ë½ÃÄÑ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
ex) aaa.sh
. ~/.profile
run [¹ÙÀ̳ʸ®¸í]
¶Ç´Â
/home/user1/bin/run
±×½ÇÇàÀ¯Àú°¡ Å©·ÐÀ¸·Î ½ÇÇàÇϵµ·Ï ½ÇÇàÀ¯Àú¿¡ ¼³Á¤ÇØÁÖ½É µÉµíÇѵ¥¿ä..
¿ì¿©°îÀý ³¡¿¡ ±ò²ûÈ÷´Â ¾Æ´ÏÁö¸¸ ÇØ°áµÇ¾ú½À´Ï´Ù...