超时命令后脚本输出 [英] Script output after timeout command

查看:134
本文介绍了超时命令后脚本输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的symfony(PHP框架)的任务类来创建CLI脚本。目前,我写了这样的脚本:

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

但没有输出,我需要3600秒后,该脚本将退出。和./symfony pparse:价格数据输出到控制台。超时工作,但没有输出。

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.

推荐答案

我不知道为什么,但目前它做工精细。也许这就是问题的操作系统。

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

这篇关于超时命令后脚本输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆