我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何查看cron作业中返回的php错误

I've got a script that PIPES an email address but it's not doing what I need it to do and I believe it's returning some php FATAL errors. I have it setup to log some responses already and write the responses to a .html file however how do I get the FATAL errors to log in that same .html file so I can debug my script?

Change the cron command to something like

php myJob.php >> stdout.log 2>> stderr.log

This should redirect the regular output to stdout.log and the errors to stderr.log.

近期文章

  • 一个人怎么对几十个人研发的软件做系统性测试?
  • WIN10远程桌面链接时发生身份验证错误(代码:0X609),怎么解决
  • lua if循环语句怎么循环一次?
  • unity中进度条控制动画播放
  • 有大触知道osd是什么吗
  • python如果图片来到了指定位置那么输出一段话
  • 区块链去中心化的讨论
  • 我该如何在MySQL里面desc这个idea项目里面的user表格
  • 如何获取数组的最后一个值?
  • 关于#数据结构#的问题,请各位专家解答!
  • ESP8266,与onenet连通,但是怎么都连不上!
  • python-库存分配-PULP求解
  • 关于#IDEA#的问题,如何解决?
  • 使用SSH时,出现libgomp.so.1: version 'GOMP_4.0'报错
  • 同源建模怎么生成同源多聚体
  • 如何用C语言编写程序计算e的值
  • 进行算法练习时遇到的问题
  • 一个符号不知道什么意思
  • 算法第四版插入排序命題證明
  • Facebook图表显示活动参加者

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华