Script output after timeout command

巧了我就是萌 提交于 2019-12-25 07:37:17

问题


i use symfony (php framework) task class to create cli scripts. Currently i wrote this kind of script:

#!/bin/bash
timeout 3600 ./symfony pparse:prices

But there is no output, I need that script will exit after 3600 sec. and ./symfony pparse:prices output data to console. Timeout is working, but no output.


回答1:


I dont know why, but currently it work fine. Maybe this is issue to OS.



来源:https://stackoverflow.com/questions/16582048/script-output-after-timeout-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!