[Gambas-user] how-to execute file or bash script packaged inside gambas

Benoît Minisini gambas at ...1...
Sat Jan 28 20:09:00 CET 2017


Le 28/01/2017 à 20:03, Benoît Minisini a écrit :
> Le 28/01/2017 à 18:07, Marty a écrit :
>> Want to run a script file packaged within the Gambas project. Tried the
>> method below.
>>
>> DIM sTempScript as String
>>
>> sTempScript = Temp$
>>
>> COPY "update.sh" TO sTempscript
>>
>> SHELL sTempScript WAIT
>>
>> Does not work for me. All of the python files are in the gambas project
>> directory and have execute permissions.
>>
>> The error is: /bin/sh:1:/tmp/gambas.1000/3092/1.tmp permission denied
>>
>> What do I change to allow the python programs to run? Is it the project
>> directory?
>>
>> Thanks,
>> Marty
>>
>
> Did you set execution rights on the shell file?
>

I mean on the copy. The permissions on the original file are ignored 
once you make an executable (they are all read-only and not executable).

-- 
Benoît Minisini




More information about the User mailing list