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.
./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: