solaris编辑crontab作业

solaris编辑crontab作业

#需要先设置EDITOR=vi,否则无法编辑

export EDITOR=vi

crontab -e

作业的日志位置

cd /var/cron tail -100 olog|more

> CMD: cronworknew

> testapp1 710 c Thu Oct 21 02:10:00 2021

< testapp1 710 c Thu Oct 21 02:10:01 2021

> CMD: cronworknew2

> testapp1 3133 c Thu Oct 21 02:20:00 2021

< testapp1 3133 c Thu Oct 21 02:20:01 2021

posted @ 2021-10-21 10:08  雨中的小羊咩。  阅读(79)  评论(0)    收藏  举报