1.     at µ¥¸ó(ÀÛ¾÷ ½ºÄÉÁì ¿¹¾à µ¥¸ó)

2.     at µ¥¸óÀº ¾î¶² ¸í·ÉÀ» ¿¬¼ÓÀûÀ¸·Î ³»·Á¾ß Çϴµ¥ Áö±ÝÀº ¹Ù»Û °æ¿ì¶óµçÁö ¿ÜºÎ¿¡¼­ ÅÚ³ÝÀ¸·Î Á¢±ÙÇؼ­ ÀÛ¾÷À» ÇØ¾ß Çϴµ¥ ÇØ´ç ÀÛ¾÷À» °è¼Ó Çϵµ·Ï ÇÏ°í ½ÍÀº °æ¿ì¿¡ »ç¿ëÇÏ´Â ÀÛ¾÷ ½ºÄÉÁì ¿¹¾à µ¥¸óÀ̸ç, ÀÌ µ¥¸óÀº ÀϹÝÀûÀ¸·Î root À¯Àú¸¸ »ç¿ëÀÌ °¡´ÉÇÏ´Ù.

3.     at µ¥¸óÀÇ »ç¿ë¹ý

at
µ¥¸ó(atd)À» »ç¿ëÇϱâ À§Çؼ­´Â at, atq, atrm, batch ¸í·É¿¡ ´ëÇؼ­ ¾Ë¾Æ¾ß ÇÑ´Ù.

1.     at, atq, atrm

ÀÌ ¸í·É¾î´Â ½ÇÁ¦ÀûÀ¸·Î atd µ¥¸ó¿¡ ¸í·É¾î¸¦ ³»¸®´Â ¸í·É¾î·Î ¸í·ÉÇØ¿¡´Â ¾ðÁ¦ ½ÇÇàÇÒ °ÍÀÎÁö ±×¸®°í ¹«½¼ ¿É¼ÇÀ¸·Î ½ÇÇàÇÒ °ÍÀÎÁö¿¡ ´ëÇÑ ¿É¼ÇÀÌ ÀÖ°í, ¸í·É¾î¸¦ ¿£Å͸¦ Ãļ­ ÀÔ·ÂÇϸé Ä¿¼­°¡ ÇÑ ÁÙ ¹ØÀ¸·Î ³»·Á°¡°Ô µÇ´Âµ¥ ¿©±â¼­ ½ÇÇàÇÒ ¸í·ÉÀ» ¼ø¼­´ë·Î Çϳª¾¿ Ãļ­ ÀÔ·ÂÇÑ µÚ¿¡ ´Ù ³¡³ª¸é [Ctrl]+[D] ¸¦ ´­·¯¼­ ³ª°¡¸é µÈ´Ù.

»ç¿ë¹ý

2.     Usage: at [-V] [-q x] [-f file] [-m] time
           atq [-V] [-q x] [-v]
           atrm [-V] [-q x] job ...
           batch [-V] [-f file] [-m]

¿É¼Ç

3.     -V : ¹öÀüÀ» º¸¿©ÁØ´Ù.
-q queue :
½ÇÇàÇÒ ´ë±âÅ¥¸¦ Á¤ÇÒ ¼ö ÀÖ´Ù. »ç¿ëÇÒ ¼ö ÀÖ´Â ¹®ÀÚ´Â a-z, A-Z ±îÁöÀ̸ç, a°¡ ±âº» Å¥ÀÌ´Ù. Ưº°È÷ b´Â batch ¸í·É¿¡¼­ »ç¿ëÇϴ ťÀÌ¸ç ±× ¿Ü¿¡´Â ³ôÀº ±ÛÀÚ¸¦ »ç¿ëÇÒ ¼ö·Ï nice°ªÀ» ³ô¿©¼­ ½ÇÇàÇÏ°Ô µÈ´Ù. atq·Î Å¥¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.
-f file :
Ç¥ÁØ ÀÔ·ÂÀÌ ¾Æ´Ñ, µÚ¿¡ ½áÁÖ´Â ÆÄÀÏ¿¡¼­ ¸í·É¾î¸¦ ÀоîµéÀδÙ.
-m :
½ÇÇàÇÑ °á°ú¸¦ ¸ÞÀÏ·Î Å뺸ÇØÁØ´Ù.
-l : atq
¸¦ ½ÇÇàÇÏ´Â aliasÀÌ´Ù.
-d : atrm
À» ½ÇÇàÇÏ´Â aliasÀÌ´Ù.
-v :
³¡³­ ÀÛ¾÷ÀÌÁö¸¸ ¾ÆÁ÷ Å¥¿¡¼­ »èÁ¦µÇÁö ¾ÊÀº ÀÛ¾÷À» Àû¾îÁØ´Ù.
-c :
ÀÛ¾÷ ¸®½ºÆ®¸¦ ¸í·ÉÇàÀ» Æ÷ÇÔÇÏ¿© Ç¥ÁØ Ãâ·ÂÀ¸·Î º¸¿©ÁØ´Ù.
TIME :
½ÇÇàÇÒ ½Ã°£À» ±â·ÏÇÑ´Ù. ±âº»ÀûÀ¸·Î "hh:mm YYYY-MM-DD"·Î Àû´Â´Ù. hh:mmÀº ½Ã°£À¸·Î 24½Ã°£Á¦¸¦ ±âº»À¸·Î ÇÑ´Ù.

»ç¿ë¿¹

4.     ½ÇÁ¦ ¸í·ÉÀº ¾Æ·¡¿Í °°ÀÌ "at + ½ÇÇàÇÒ ½Ã°£"À¸·Î ¸í·ÉÀ» ³»¸®¸é at>¶ó´Â ÇÁ·ÒÇÁÆ®°¡ ¶ß´Âµ¥ ¿©±â¼­ ºÎÅÍ ½ÇÁ¦ ³»¸± ¸í·ÉÀ» °è¼ÓÀûÀ¸·Î ½áÁÖ¸é µÈ´Ù.

[root@bluestar bin]# at 12:00 2000-03-02
at> find / -name *linux* -print
at> tee ~/linux.txt
at> < EOT>   <- [EOT]
´Â ½ÇÁ¦´Â [Ctrl]+[D]ÀÌ´Ù.
warning: commands will be executed using /bin/sh
job 1 at 2000-03-02 12:00
[root@bluestar bin]#

À§¿¡¼­ "at 12:00 2000-03-02"´Â 2000³â 3¿ù 2ÀÏ¿¡ ¾Æ·¡¿¡ ŸÀÌÇÎÇÑ ¸í·É¾î¸¦ ½ÇÇàÇ϶ó´Â ¶æÀ̸ç, ±× ´ÙÀ½¿¡ ³»¸° ¸í·ÉµéÀº °¡¿îµ¥ 'linux'¶ó´Â ÆÐÅÏÀÌ µé¾î°¡´Â ÆÄÀÏÀ» ã¾Æ¼­ ±× °á°ú¸¦ ~/linux.txt ¶ó´Â ÆÄÀÏ¿¡ ÀúÀåÇ϶ó´Â ¶æÀÌ´Ù.
¸¶Áö¸·À¸·Î [Ctrl]+[D]¸¦ ´­·¯¼­ ³¡³»°Ô µÇ´Âµ¥, ½Ã½ºÅÛÀº Ä¿¸Çµå¸¦ ¾ðÁ¦ ÀÔ·ÂÇß´ÂÁö¸¦ º¸¿©ÁÖ¸ç job 1¿¡ ÇÒ´çµÇ¾ú´Ù°í º¸¿©ÁÖ°í ÀÖ´Ù.

À̹ø¿¡´Â ´Ù¸¥ ¿¹¸¦ º¸±â·Î ÇÏÀÚ.

[root@bluestar bin]# at now + 2 hours
at> find / -name *.html -print
at> tee ~/html.txt
at> mount -t vfat /dev/hda1 /mnt/win98_c
at> cp ~/html.txt /mnt/win98_c/
at> < EOT>
warning: commands will be executed using /bin/sh
job 2 at 2000-03-02 13:34
[root@bluestar bin]#

À§´Â Áö±ÝºÎÅÍ 2½Ã°£ ÈÄ¿¡ ¾Æ·¡ ¸í·ÉµéÀ» ½ÇÇàÇ϶ó´Â ¶æÀÌ´Ù. hours ´ë½Å¿¡ minutes, days, week µîÀÌ ¾²ÀÏ ¼ö ÀÖÀ¸¸ç, ±×³É "at now" ¶ó°í ¾²¸é ¸ðµç ¸í·ÉÀ» ÀÔ·ÂÇÑ ÈÄ [Ctrl]+[D]¸¦ ÀÔ·ÂÇÏ´Â Áï½Ã ½ÇÇàÇÑ´Ù.

ÀÌ·¯ÇÑ atd µ¥¸óÀº ½©½ºÅ©¸³Æ®³»¿¡¼­ ¾ÆÁÖ À¯¿ëÇÏ°Ô »ç¿ëµÇ¾î Áú ¼ö Àִµ¥, ¸¸¾à ¾î¶² ½©½ºÅ©¸³Æ®ÀÇ ¸¶Áö¸· ºÎºÐ¿¡ "at -m -f $0 now + 3 days"¶ó°í ½áÁÖ°Ô µÇ¸é ÇØ´ç ½©½ºÅ©¸³Æ®¸¦ ¸Å¹ø 3Àϸ¶´Ù ½ÇÇàÇÏ°Ô µÇ¸ç, ±× °á°ú¸¦ ¸ÞÀϷεµ ¾Ë·ÁÁÖ°Ô µÈ´Ù.


ÀÌÁ¦ ÀÌ·¸°Ô ¿¹¾àµÈ ÀÛ¾÷³»¿ë(Å¥:queue)À» º¸·Á¸é at ¸í·É¿¡ -l ¿É¼ÇÀ» Áְųª atq ¸í·ÉÀ» ½á¸é µÈ´Ù.

[root@bluestar bin]# at -l
1 2000-03-02 12:00 a
2 2000-03-02 13:34 a

[root@bluestar bin]# atq
1 2000-03-02 12:00 a
2 2000-03-02 13:34 a

Å¥¿¡ ÀÖ´Â ÀÛ¾÷À» Áö¿ì·Á¸é atrm ¸í·ÉÀ» »ç¿ëÇÑ´Ù.

[root@bluestar bin]# atrm 2
[root@bluestar bin]# atq
1 2000-03-02 12:00 a  <- 2
¹ø ÀÛ¾÷ÀÌ Áö¿öÁ³´Ù.
[root@bluestar bin]#

5.     batch

batch
¸í·ÉÀº at¿Í »ç¿ë¹ýÀÌ °°´Ù.

[root@bluestar bin]# batch
at> find / -name *.html -print
at> tee ~/html.txt
at> mount -t vfat /dev/hda1 /mnt/win98_c
at> cp ~/html.txt /mnt/win98_c/
at>
warning: commands will be executed using /bin/sh
job 3 at 2000-03-02 11:56
[root@bluestar bin]#

4.     at »ç¿ëÀ¯Àú Á¦ÇÑ

ÀÌ·¯ÇÑ atd µ¥¸óÀ» ¾Æ¹« À¯Àú³ª ¸¶À½µ¥·Î ¾²°Ô µÈ´Ù¸é ½Ã½ºÅÛ¿¡ ¸¹Àº ºÎÇÏ°¡ °É¸± ¼ö°¡ ÀÖÀ¸¹Ç·Î »ç¿ëÀ¯Àú¸¦ Á¦ÇÑÇÒ ÇÊ¿ä°¡ Àִµ¥ ÀÌ ¶§ »ç¿ëµÇ´Â ÆÄÀÏÀÌ /etc/at.allow¿Í /etc/at.deny ÆÄÀÏÀÌ´Ù.
º¸Åë µÑÁß¿¡ ÇϳªÀÇ ÆÄÀϸ¸ »ç¿ëÇϸç, /etc/at.allow ÆÄÀÏÀ» ¸ÕÀú ÀÐ°Ô µÈ´Ù. /etc/at.allow ÆÄÀÏ¿¡ ƯÁ¤ À¯Àú¸íÀ» Àû¾î³ÖÀ¸¸é ±× À¯ÀúµéÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö À¯Àú´Â at¸¦ »ç¿ëÇÒ ¼ö ¾øÀ¸¸ç, /etc/at.deny´Â ¹Ý´ëÀÌ´Ù.

[root@bluestar /root]# cat < /etc/at.allow
bluesky
jkpark
[root@bluestar /root]#

1.     ·  cron µ¥¸ó(ÁÖ±âÀû ÀÛ¾÷½ÇÇà µ¥¸ó)

2.     crond µ¥¸óÀº ÀÏÁ¤½Ã°£ ÁÖ±â·Î ¹Ýº¹ÇÏ´Â ÀÛ¾÷À» ÇÒ ¼ö ÀÖ´Â µ¥¸óÀÌ´Ù.

3.     cron µ¥¸óÀÇ »ç¿ë : crontab

cron
µ¥¸óÀÇ °¡µ¿Àº /etc/rc.d/init.d/crond¿¡ ÀÖ´Ù. º¸Åë ½Ã½ºÅÛÀÇ ¾î¶² ·±·¹º§À̵çÁö cron µ¥¸óÀº ºÎÆýà ½ÃÀÛÇϵµ·Ï µÇ¾î Àִµ¥, ±»ÀÌ cron µ¥¸óÀ» Á×À̰ųª ´Ù½Ã ½ÃÀÛÇϱâ À§Çؼ­´Â À§ÀÇ /etc/rc.d/init.d/crond ½ÇÇà ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÏ¸é µÈ´Ù. cron µ¥¸ó¿¡ ÀÛ¾÷À» ¼³Á¤Çϱâ À§Çؼ­´Â cron tableÀ» ¼³Á¤ÇÏ´Â crontab¶ó´Â ½ÇÇàÆÄÀÏÀ» »ç¿ëÇÑ´Ù.

»ç¿ë¹ý

4.     usage:    crontab [-u user] file
              crontab [-u user] { -e | -l | -r }
                         (default operation is replace, per 1003.2)
             -e         (edit user's crontab)
             -l          (list user's crontab)
             -r          (delete user's crontab)

¿É¼Ç

5.     -u »ç¿ëÀÚ : ƯÁ¤ »ç¿ëÀÚÀÇ crontab ÆÄÀÏÀ» ´Ù·çµµ·Ï ÁöÁ¤ÇÑ´Ù. ÀÌ ¸í·ÉÀº root À¯ÀúÀÎ °æ¿ì¸¸ »ç¿ëÇÏ´ÉÇϸç, ÀϹÝÀûÀ¸·Î´Â ÀÚ½ÅÀÇ cron ½ºÄÉÁ층¿¡ °É·ÁÀÖ´Â ÀÛ¾÷¸¸ º¸°Å³ª ¼³Á¤À» ÇÒ ¼ö ÀÖ´Ù.
-l : crontab
¿¡ µî·ÏµÇ¾î ÀÖ´Â ½ºÄÉÁìÀ» È®ÀÎÇÑ´Ù.
-r :
»ç¿ëÀÚÀÇ crontab ÆÄÀÏÀ» Áö¿î´Ù.
-e :
¿¡µðÅ͸¦ »ç¿ëÇÏ¿© crontab ÆÄÀÏÀ» ¼öÁ¤ÇÑ´Ù.(»õ·Î¿î ½ºÄÉÁìÀ» µî·ÏÇÑ´Ù.)
file : cron table
³»¿ëÀ» ±â·ÏÇÑ ÆÄÀÏ¿¡¼­ Àоî¿Í¼­ ¼³Á¤ÇÑ´Ù.

»ç¿ë¿¹

6.     ¿ì¼± cron tableÀ» ÆíÁýÇϱâ À§Çؼ­´Â crontab -e ¸í·ÉÀ» »ç¿ëÇÑ´Ù.
"crontab -e"
¸¦ ½ÇÇàÇϸé cron tableÀ» ÆíÁýÇÒ ¼ö ÀÖµµ·Ï vi ¿¡µðÅÍ°¡ ½ÇÇàÀÌ µÇ´Âµ¥ ½ÇÇàÇÏ°íÀÚ ÇÏ´Â ³»¿ëÀ» ÀÔ·ÂÇÏ°í ºüÁ® ³ª¿À¸é µÇ´Âµ¥ ÀÔ·Â Çü½ÄÀº ¾Æ·¡¿Í °°´Ù.

01 4 * * * /etc/rc.d/init.d/network stop
15 4 * * * ~/scripts/my_script.sh
00 5 * * * /etc/rc.d/init.d/network start


À§ÀÇ ³»¿ëÀÌ cron table¿¡ ÀÔ·ÂµÈ ³»¿ëÀε¥ ÀÌ·¯ÇÑ ÀÔ·ÂÇü½ÄÀº ¾Æ·¡¿Í °°´Ù.

M H D m d cmd-line

Çʵå¸í

¹üÀ§

¼³¸í

M

0-59,*

ºÐÀ» ÀǹÌÇϸç, *´Â ¸ðµç ¹üÀ§¸¦ ¸»ÇÑ´Ù.

H

0-23,*

½Ã¸¦ ÀǹÌÇÑ´Ù.

D

1-31,*

³¯Â¥¸¦ ÀǹÌÇÑ´Ù.

m

1-12,*

´ÞÀ» ÀǹÌÇÑ´Ù.

d

0-7,*

¿äÀÏÀ» ÀǹÌÇϸç, 0°ú 7Àº ÀÏ¿äÀÏ(Sun)À» ÀǹÌÇÑ´Ù.

cmd-line

½ÇÇàÇÒ ¸í·ÉÀ» ±×³É ½áÁØ´Ù.

7.    
°á±¹ À§ÀÇ ÀԷ³»¿ëÁß Ã¹¹ø° ÀÔ·ÂÀÎ "01 4 * * * /etc/rc.d/init.d/network stop"Àº ¸ÅÀÏ 4½Ã 01ºÐ¿¡ µÚÀÇ "/etc/rc.d/init.d/network stop" ¸í·ÉÀ» ½ÇÇàÇÏ°Ô µÇ¸ç, ´Ù¸¥ ÀԷ³»¿ëµéµµ µ¿ÀÏÇÏ°Ô Çؼ®µÈ´Ù. °¢ÀÚÀÇ »ç¿ëÀÚ°¡ µî·ÏÇÑ cron tableÀº /var/spool/cron µð·ºÅ丮¿¡ ÀúÀåµÈ´Ù.


ÀÔ·Â ³»¿ëÀÇ ´Ù¸¥ ¿¹¸¦ º¸¸é,

30 13 * * 1-5 mail -s "It's 2pm" root% Dear root%% Are you sleeping??

°°Àº °æ¿ì´Â ¿ù¿äÀϺÎÅÍ ±Ý¿äÀϱîÁö ¿ÀÈÄ 1½Ã 30ºÐ¿¡ ÇØ´ç mail ¸í·ÉÀ» ½ÇÇàÇÏ°Ô µÈ´Ù.
À§¿¡¼­ % ¹®ÀÚ´Â °³Ç๮ÀÚ ¿ªÇÒÀ» Çϸç(Ç®¾î¾²¸é ¾Æ·¡¿Í °°Àº ¸í·ÉÀÌ µÈ´Ù), ÇÑÁÙÀÌ ³Ñ¾î°¡´Â ¸í·ÉÀ» ¾²±â À§Çؼ­´Â ¹é½½·¡½¬(\)¸¦ ½áÁÖ°í ´Ù½Ã °³ÇàÇؼ­ ¾²¸é µÈ´Ù.

$ mail -s "It's 2pm" root
Dear root

Are you sleeping?
[EOT]
Cc:
$


ÀÌÁ¦ ÀÌ·¸°Ô ÀÛ¼ºµÈ cron tableÀ» º¸°Å³ª »èÁ¦ÇÏ°íÀÚ ÇÒ °æ¿ì¿¡´Â -l ¿É¼Ç(tableÀ» º¼ ¶§)°ú -r ¿É¼Ç(table »èÁ¦ÇÒ ¶§)À» »ç¿ëÇÑ´Ù.

[root@bluestar cron]# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.9706 installed on Thu Mar 2 13:26:59 2000)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
30 13 * * 1-5 mail -s "It's 2pm" root% Dear root%% Are you sleeping??

[root@bluestar cron]# crontab -r
[root@bluestar cron]# crontab -l
no crontab for root
[root@bluestar cron]#

8.     /etc/crontab

cron table
À» ÀÛ¼ºÇÏ´Â crontab ½ÇÇàÆÄÀÏÀº /usr/bin/crontab¿¡ À§Ä¡ÇÏ°í ÀÖ´Ù. ±×·±µ¥ /etc µð·ºÅ丮¿¡µµ crontab ÆÄÀÏÀÌ Àִµ¥ ÀÌ´Â crontab ¼³Á¤ÆÄÀÏÀÌ´Ù. ±× ³»¿ëÀº ¾Æ·¡¿Í °°´Ù.

[root@bluestar /root]# cat < /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
[root@bluestar /root]#

SHELL
Àº ½ÇÇà¸í·ÉÀ» ½ÇÇàÇÒ ½©ÀÇ Á¾·ù¸¦ Àû¾îÁØ´Ù.
PATH
´Â ½ÇÇàÆÄÀÏÀ» °Ë»öÇÒ PATHÀÌ´Ù.
MAILTO
´Â ½ÇÇà°á°ú¸¦ º¸°íÇϴµ¥ »ç¿ëÇÒ email ÁÖ¼Ò¸¦ Àû¾îÁØ´Ù.

±×¸®°í ½ÇÇàÆÄÀÏÀÌ µé¾î°¡¾ßÇÒ ºÎºÐ¿¡ "root run-parts /etc/cron.xxxxxxx"¶ó°í µÇ¾î ÀÖ´Ù.
root
´Â µÚÀÇ "run-parts ..."¶ó°í ³ª¿À´Â ¸í·ÉÇàÀ» ½ÇÇàÇÒ À¯Àú¸íÀ» Àû¾îÁØ´Ù. À§ÀÇ ³»¿ëµéÀº °¢°¢ óÀ½ºÎÅÍ ¸¸µé¾îÁ® ÀÖ´Â ½ºÅ©¸³Æ®·Î¼­ run-parts¶ó´Â ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇؼ­ ÇØ´ç µð·ºÅ丮³»¿¡ ÀÖ´Â ¸ðµç ½ÇÇàÆÄÀÏÀ» ½ÇÇàÇϵµ·Ï µÇ¾îÀÖ´Ù. ±×·¡¼­ ¸¸ÀÏ ¾î¶² ¸í·ÉÀÌ ¸Å½Ã¸¶´Ù, ȤÀº ¸ÅÀÏ, ¸ÅÁÖ, ¸Å´Þ¸¶´Ù ½ÇÇàµÇ¾î¾ß ÇÏ´Â ¸í·ÉÀ̶ó¸é ÇØ´ç µð·ºÅ丮(/etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly, /etc/cron.weekly)¿¡ ½ÇÇàÆÄÀÏ(ȤÀº ½ºÅ©¸³Æ®)À» ³Ö¾îÁְųª ¸µÅ©ÆÄÀÏÀ» ³Ö¾îµÎ¸é µÈ´Ù.

Âü°í·Î /usr/bin/run-parts ½ºÅ©¸³Æ®ÀÇ ³»¿ëÀº ¾Æ·¡¿Í °°´Ù.

[bluesky@bluestar bluesky]# cat < /usr/bin/run-parts
#!/bin/bash
# run-parts - concept taken from Debian
# keep going when something fails
set +e

if [ $# -lt 1 ]; then
             echo "Usage: run-parts < dir>"
             exit 1
fi

if [ ! -d $1 ]; then
             echo "Not a directory: $1"
             exit 1
fi

for i in $1/* ; do
             [ -d $i ] && continue
             if [ -x $i ]; then
                     $i
             fi
done

exit 0
[bluesky@bluestar bluesky]#

9.     ù¹ø° if¹®Àº run-parts ¸í·ÉÀ» Àμö°¡ ¾øÀÌ ±×³É run-parts¸¸ ½ÇÇàÇÏ¸é ¸í·É¾î µÚ¿¡ µð·ºÅ丮¸¦ ¸í½ÃÇ϶ó´Â »ç¿ë¹ý ¸Þ½ÃÁö¸¦ º¸¿©Áشٴ ³»¿ë..
µÎ¹ø° if¹®Àº run-partsÀÇ Ã¹¹ø° Àμö°¡ µð·ºÅ丮°¡ ¾Æ´Ï¸é "Not a directory : ÀÔ·ÂÇÑ Àμö"¸¦ Ãâ·ÂÇÏ°í ºüÁ®³ª°¨.
¼¼¹ø°ÁÙ for ¹®Àº Àμö·Î ¹ÞÀº µð·ºÅ丮³»ÀÇ ÆÄÀϵé($1/*)À» Çϳª¾¿ ´ëÀÔÇؼ­ ½ÇÇàÆÄÀÏÀ̸é([ -x $i ]) ½ÇÇàÇÑ´Ù´Â ³»¿ëÀÌ´Ù.

10.   cron µ¥¸óÀÇ »ç¿ëÀ¯Àú Á¦ÇÑ

cron
µ¥¸óµµ at µ¥¸ó°ú ¸¶Âù°¡Áö·Î À¯Àú¿¡ µû¶ó »ç¿ëÀ» Á¦ÇÑÇÒ ¼ö°¡ Àִµ¥ ¿ª½Ã /etc/cron.allow¿Í /etc/cron.deny ÆÄÀÏÀ» »ç¿ëÇϸç, »ç¿ë¹ýÀº at.allow/at.deny¿Í µ¿ÀÏÇÏ´Ù.

[Ãâó] atµ¥¸ó & cronµ¥¸ó|ÀÛ¼ºÀÚ È°·Âã±â