linux 定时任务

定时任务

 

[root@eegooserver2 ~]# chmod +x /opt/mysqlbackup/mysqlautobackup

[root@eegooserver2 ~]# crontab -e

no crontab for root - using an empty one

0 2 * * * /opt/mysqlbackup/mysqlautobackup

~

~

~

"/tmp/crontab.UGIdsz" 1L, 43C written

crontab: installing new crontab

[root@eegooserver2 ~]# service crond reload

Reloading crond:                                           [  OK  ]

[root@eegooserver2 ~]# service crond restart

Stopping crond:                                            [  OK  ]

Starting crond:                                            [  OK  ]

[root@eegooserver2 ~]#

相关推荐