Unix: crontab命令执行日志在主流Unix系统下的小结

 

最近经常和crontab打交道,顺便把crontab在各个主流Unix系统下的运行日志
文件作个小结.

HP-UX: /var/adm/cron目录下的(log和OLDlog日志文件)

# more log
...
>  CMD:   sleep 15;/etc/opt/resmon/lbin/mon_EMSHAProvider_state.sh
>  root 3529 c Mon Nov 10 16:14:00 EAT 2008
...

AIX: /var/adm/cron目录下的(log日志文件)

# more log
...
! The cron program has started. The process number is 176252.
 Fri Feb 18 04:47:05 CST 2005
root     : CMD ( /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null )
  : PID ( 311372 ) : Fri Feb 18 06:00:00 2005 Cron Job with pid: 311372 Successful
...

Solaris: /var/cron目录下的(log日志文件)

# more log
...
>  CMD: /usr/sbin/logadm
>  root 16873 c Wed Mar  8 03:10:00 2006
...

Linux(RedHat): /var/log目录下的(cron*日志文件)

# more cron
...
Feb 25 10:01:00 dycc01 CROND[4660]: (root) CMD (run-parts /etc/cron.hourly)
Feb 25 10:01:00 dycc01 CROND[4660]: LAuS error - do_command.c:226 - laus_attach:
  (19) laus_attach: No such device
...

可以看出虽然都是类似*nix的系统,他们之间还是有差别的,记录一下,以资备忘.

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/75231/viewspace-557686/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/75231/viewspace-557686/

你可能感兴趣的:(Unix: crontab命令执行日志在主流Unix系统下的小结)