I want to be able to run a cgi application on my samsung galaxy tablet running android 3.2.
I have installed GroomDroid, SL4A, and PerlForAndroid.
I put my groom.conf file in my /sdcard directory and start GroomDroid.
I put my perl scripts in the /data/perlapp folder and make the perl files executable and make the parent folder writable.
All the files are doing is running print statements. When I access the perl scripts life is good. I see the web page as expected just like I would on a computer.
Now if I try to create files from the perl scripts I am getting HTTP 506 IO Error.
Any ideas why I would be getting this?
I call cannot get a require statement to work even if the perl files are in the same directory.
Any help here is greatly appreciated.
The code I am trying to run:
#!/data/data/com.googlecode.perlforandroid/files/perl/perl
print "Content-type: text/html\r\n\r\n";
print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"w3.org/TR/html4/loose.dtd\"";
print "<html><body style=\"font-family: arial; margin: 20px;\"><span style=\"color:red; font-weight: bold; padding-right: 10px;\">";
eval {
open(FILE, ">>/data/scwi/data/temp.cgi") or print $!;
print FILE "respondent 1\n";
close(FILE);
};
print $!;
if ($!) {
print "Error";
} else {
print "Success";
}
print "</span></body></html>";