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

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Jan 28 20:14:30 CET 2017


Also does the tmp partition have noexec set (check /etc/fstab)? It's common
way to harden Linux installation, but people kind of abuses /tmp... it's
not for executions.


Jussi

On Sat, Jan 28, 2017 at 9:09 PM, Benoît Minisini <
gambas at ...1...> wrote:

> 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
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list