[Gambas-user] how-to execute file or bash script packaged inside Gambas
Marty
mmcg29440 at ...3163...
Sat Jan 28 22:25:19 CET 2017
Jussi,
Thanks for your response. I’ve checked /etc/fstab and There are only two partitions the main and swap. I do not see any entry for a tmp partition. I’m running Gambas 3.91 under Mint17.1.
Did a routine install when I installed it right from the CD.
Bennoit,
Thanks for your suggestion also. All of the files in the project directory have execute permissions set. Where is /tmp/Gambas located? I look at its permissions.
Marty
From: Jussi Lahtinen [via Gambas] [mailto:ml-node+s8142n58348h5 at ...3046...]
Sent: Saturday, January 28, 2017 12:38 PM
To: Marty <mmcg29440 at ...3163...>
Subject: Re: how-to execute file or bash script packaged inside gambas
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 <
[hidden email]> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
_____
If you reply to this email, your message will be added to the discussion below:
http://gambas.8142.n7.nabble.com/how-to-execute-file-or-bash-script-packaged-inside-gambas-tp20046p58348.html
To start a new topic under gambas-user, email ml-node+s8142n3h10 at ...3046... <mailto:ml-node+s8142n3h10 at ...3046...>
To unsubscribe from how-to execute file or bash script packaged inside gambas, click here <http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=20046&code=bW1jZzI5NDQwQGZyb250aWVyLmNvbXwyMDA0NnwxNDAwMzEwMDQ5> .
<http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML
--
View this message in context: http://gambas.8142.n7.nabble.com/how-to-execute-file-or-bash-script-packaged-inside-gambas-tp20046p58349.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list