127 Return code from $?

后端 未结 8 2162
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 10:23

What is the meaning of return value 127 from $? in UNIX.

8条回答
  •  旧时难觅i
    2020-11-22 11:13

    If you're trying to run a program using a scripting language, you may need to include the full path of the scripting language and the file to execute. For example:

    exec('/usr/local/bin/node /usr/local/lib/node_modules/uglifycss/uglifycss in.css > out.css');
    

提交回复
热议问题