P
P
PsySonic2011-09-15 13:40:57
Android
PsySonic, 2011-09-15 13:40:57

Running a server script on android without execute permissions?

I want to write an android application in python with (only) a web interface. For starters, I'm going to use just Python's CGIHTTPServer, launched from SL4A.

The problem is that the executable flag should be on the Python script, but on the chip where the scripts are located, FAT is used and, which is logical, it is mounted without execution rights.
Of course, I can remount the flash drive with +x, but I would like to avoid this option.
Can I somehow force scripts to be executed without the executable flag?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2011-09-15
@WNeZRoS

The executable flag is only needed if the script is called as "./script.py" , and the executable flag is not needed for "python script.py" .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question