I\'m using the following code on a linux web server
$error = exec(\'phantomjs table1.js\', $op, $code);
echo $code; // prints 11 on screen
Code 11 is a "segmentation fault": A segmentation fault (also segfault) is caused by a program when it tries to allocate data in a piece of memory that is not assigned to the program. It indicates a program error and usually (if not always) crashes the program. In your case, the segfault probably is caused by phantomjs, which indicates perhaps an old or beta version.
This is what I found out.
00001000
and the main process(node as per assumption) will also exit with the same binary error code.1
and 1
.Hence your error code of 11.
Source: Are there any standard exit status codes in Linux?