简体   繁体   English

分析计时器过期循环im bash shell

[英]Profiling timer expired loop im bash shell

I am running the following program 我正在运行以下程序

#!/bin/bash
for (( x=1; x<=180; x++ ))
do
./speed && perl load_tables.pl && Rscript Test.R     
done

but after some loops I get the error 但经过一些循环我得到了错误

Profiling timer expired

How can I fix it? 我该如何解决?

You can make your script ignore the SIGPROF signal by adding this command at the top: 您可以通过在顶部添加此命令来使脚本忽略SIGPROF信号:

trap "" SIGPROF 陷阱“”SIGPROF

This registers a signal handler for SIGPROF that does nothing (the empty string). 这会为SIGPROF注册一个不执行任何操作的信号处理程序(空字符串)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM