为什么我的 Perl 脚本以 137 退出? [英] Why does my Perl script exit with 137?

查看:27
本文介绍了为什么我的 Perl 脚本以 137 退出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法消除 perl 中的警告(退出代码 137)?我在 linux 上的另一个 shell 脚本中运行一个 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 脚本末尾也有一个 exit 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屋!

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