LINUX.ORG.RU

man cron
man crontab

anonymous
()

бла, так и знал, что так ответят. заметил, что обычно так отвечают люди, сами не особо разбирающиеся. т.е. я бы сам, навреное, man cron написал бы :))))

dezruptor
() автор топика

В crontab вносишь типа:

*/5 * * * * root /usr/libexec/atrun
*/5 * * * * root /tmp/is_run_pg.pl

- каждые 5 минут запускается ( с остальными временными параметрами сам разберешься, в man все вполне доходчиво (а если на 10 заменишь - то раз в 10 минут запускатьяс будет :-)

gennik
()

Блин, ну все ж понятно! Разжевывать нельзя - чтоб привычка не 
образовалась сначала спрашивать, а потом думать!

# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null.  We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the 'atrun' program every 5 minutes
# This runs anything that's due to run from 'at'. See man 'at' or 'atrun'.
# Note that this is commented out since it's not needed if you run atd.  But,
# it's left as an example, since atd isn't strictly required.  You can still
# run it this way instead.
#0,5,10,15,20,25,30,35,40,45,50,55 * * * *      /usr/sbin/atrun 1> /dev/null 2> 
/dev/null
#
# This touches a filename in the temp directory so that you can see cron is
# working if the timestamp is current. Comment it out if it bugs you. :^)
# * * * * *       touch /tmp/.crond_running
40 04 * * *      cd / ; updatedb ; 
#0 0 * * *      /usr/local/bin/rotate_all_logs

Zulu ★★☆☆
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.