Plugin development : qx command, wrong exit value
Hi,
In my plugin, I would like to run a command capture its exit value. Given below is my code.
$result = qx{yum check-update};
$exitcode = $?;
There is updates in server so the exit value should be 100. But the exit value is 25600 here. Don't know how this happens. Please help me to solve this issue.
Thanks
-
Hi, The command is working and $? is returning value. But the problem is that when I run the command and get the exit code manually, it returns 100 and when I try to run the same command in my plugin the return value is 25600. I am using centos. Do you have any idea to solve this issue? Please help me. Thank you 0 -
You will likely receive more input on this type of question on a website such as StackOverflow. The forums here are primarily intended for specific questions related to the cPanel/WHM software itself, rather than general development questions. Thank you. 0
Please sign in to leave a comment.
Comments
4 comments