如何查看crontab的日志记录

昨天crontab中的同步任务没有执行,不知道是什么原因没有执行,貌似任务hang住了,想查询一下crontab到底问题出在哪里,或者hang在了什么地方。

1.  linux
看 /var/log/cron这个文件就可以,可以用tail -f /var/log/cron观察
2.  unix
在 /var/spool/cron/tmp文件中,有croutXXX001864的tmp文件,tail 这些文件就可以看到正在执行的任务了。
3. mail任务
在 /var/spool/mail/root 文件中,有crontab执行日志的记录,用tail -f /var/spool/mail/root 即可查看最近的crontab执行情况。

42 thoughts on “如何查看crontab的日志记录

  1. Pingback: 카지노쿠폰

  2. Pingback: ardinagreco.com

  3. Pingback: aumento salarial

  4. Pingback: con heo dat

  5. Pingback: Mazlo

  6. Pingback: https://novushub.com/hindi-gana-video/

  7. Pingback: w88th

  8. Pingback: ดูบอลออนไลน์

  9. Pingback: 강원랜드

  10. Pingback: Togel OnLine

  11. Pingback: binh xập xám online

  12. Pingback: hublot king power replica

  13. Pingback: porn

  14. Pingback: porn

  15. Pingback: Topmost private universities

  16. Pingback: https://zazyle.pl/

  17. Pingback: https://dlugi-faktury.pl/

  18. Pingback: dominoqq

  19. Pingback: 카지노

  20. Pingback: fake tag heuer mikrotourbillons

  21. Pingback: auto generated contents

  22. Pingback: viagra pills for sale

  23. Pingback: judi online

  24. Pingback: judi togel

  25. Pingback: Website

  26. Pingback: pengeluaran togel hk malam ini

  27. Pingback: price of fake rolex

  28. Pingback: North-Carolina.perfecthealth101.net

  29. Pingback: delivermymulch.info

  30. Pingback: english bulldogs for sale in wi

  31. Pingback: croatia viagra 100mg

  32. Pingback: Buy fake ids

  33. Pingback: http://95.111.232.181/

  34. Pingback: Weed Vaporizers for Sale

  35. Pingback: satta king

  36. Pingback: black owned wig companies

  37. Pingback: india pharmacy viagra

  38. Pingback: w88

  39. Pingback: immediate edge review

  40. Pingback: bitcoin loophole

  41. Pingback: https://bitcoinevolutiononline.com

  42. Pingback: http://cialistodo.com

Comments are closed.