On 09/03/15 14:01, Tarkowski Michael (FCA) wrote:
> Hello,
> 
>  
> 
> I’m using the timeout (GNU coreutils) 8.23 command on RedHat 6.5 Enterprise 
> server, and it is performing the timeout as planned.
> 
>  
> 
> In my scenario, the timeout command allows me to tail a log on my Putty 
> screen for 2 minutes.  Here is the command.
> 
>  
> 
> ./startup.sh ; timeout 120 tail -f ${LOG_HOME}/tomcat/instance1/catalina.out
> 
>  
> 
>  
> 
> Issue – while the log is being tailed on my Putty screen I cannot use my 
> control keys.  For example, control+c does not cancel the log tail.
> 
>  
> 
> Note – on my other RedHat 6.5 Enterprise  servers this is not an issue but 
> I’m using timeout (GNU coreutils) 8.4 instead of version 23.
> 
>  
> 
> Any suggestions on how to get the control+c to work would be greatly 
> appreciated.

Seems like the --foreground option would be appropriate for your case.
See http://www.gnu.org/s/coreutils/timeout for details.

thanks,
Pádraig.

Reply via email to