Blank page when compile index.raw with SHC

mean

Verified User
Joined
Feb 14, 2007
Messages
113
I compile shell script file "index.raw" with SHC

./shc -v -r -T -f index.raw
or
./shc -f index.raw

index.raw / file is compile
when i run form url browser show as a blank page

http://IP:2222/CMD_PLUGINS_ADMIN/MYPlugin/index.raw

but when i run from shell command ./index.raw result is

[root@ns1]# ./index.raw
Output is :
HTTP/1.1 200 OK
Content-Type: text/html
1111111111

--------------------------------------


file : index.raw
#!/bin/sh
echo "HTTP/1.1 200 OK";
echo "Content-Type: text/html";
echo "";
/usr/local/bin/php /usr/local/directadmin/plugins/MYPlugin/admin/test.php;
---------------------------------------
file : test.php
<?
echo '1111111111';
?>

----------------------------------------

Why Installatron can be encoded index.raw

----------------------------------------

**SHC is tool for convert shell script in to binary executable
Ref :
http://www.datsi.fi.upm.es/~frosal/sources/shc.html
http://www.datsi.fi.upm.es/~frosal/
http://www.indiangnu.org/2008/how-to-convert-shell-script-in-to-binary-executable/


Please guide me.
Thank you so much. :)
mean.
 
Last edited:
Why Installatron can be encoded index.raw

Hey there,

Installatron uses a compiled C program for index.raw. That's why it appears to be encoded. There's otherwise nothing special about it.

Cheers,
Phil.
 
Dear l0rdphi1 / Phil.

it work~!
Thank you very much.
mean.

------------------------------------------
Example for interested
------------------------------------------
1. create new file test.c
--------------------------
#include <stdio.h>

void main()
{
printf("Hello, World\n");
}

--------------------------
2. compile command
cc test.c -o index.raw
or
gcc test.c -o index.raw


if warning: no newline at end of file
solve : enter end line

:)
 
Back
Top