为什么我的Perl脚本以137退出? [英] Why does my Perl script exit with 137?
问题描述
有没有一种方法可以消除Perl中的警告(退出代码137)?我在另一个Shell脚本中的Linux上运行Perl脚本.该Perl脚本以警告和退出代码137退出.我无法查明退出代码137代表什么.
Is there a way to eliminate a warning (exit code 137) in perl? I am running a Perl script on linux within another shell script. This Perl script exits with a warning and exit code 137. I could not pinpoint what exit code 137 stands for.
避免此警告的最佳方法是什么?我在脚本中尝试了无警告",在Perl脚本的末尾也有一个0出口.
What is the best way to avoid this warning? I tried "no warnings" in the script and I have an exit 0 at the end of my Perl script as well.
推荐答案
137 = 128 + 9,这意味着其他某个进程向您发送了信号9,即SIGKILL. IE.另一个脚本会杀死您的脚本,这就是它的样子.
137=128+9, which means some other process has sent you a signal 9, which is SIGKILL. I.e. the other script kills yours, that's what it looks like.
这篇关于为什么我的Perl脚本以137退出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!