0

我正在尝试使用 PeopleSoft 中的 EXEC 命令启动第三方程序。它返回错误代码 127。当我从 Unix 命令行启动程序时,我没有收到任何错误。有人知道127代码是什么吗?或者有所有返回码的列表?

4

1 回答 1

1

I think it is likely the Unix shell return code, in which case 127 is "command not found".
See http://tldp.org/LDP/abs/html/exitcodes.html

You may need to make sure your Exec call is specifying the correct path, relative or absolute, or that any expected environment variables are available. Possibly test with a simple program to see if calling through Exec is successful at all. On the server it would run under the ID that started the app server, and may be sourced differently than an individual user. If using relative paths I believe it would start in $PS_HOME.

If you can provide the code snippet someone may be able to also provide other suggestions.

于 2018-12-19T20:46:11.453 回答