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

2017-01-30 Thread Fabien Bodard
Use: User.Home &/ ".cache/gambas3/yourprogram" Or User.Home &/ ".cache/yourprogram" .cache is the standard for cached parts of programs. For example I use ~/.cache/gb.map for caching gb.map tiles 2017-01-30 5:08 GMT+01:00 Jussi Lahtinen : > Well I would avoid

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

2017-01-29 Thread Jussi Lahtinen
Well I would avoid executing things in /tmp and there is no sense in asking root permission to put it in /usr/bin or so. So directory in home is good option. System.User.Home gives you what you need. Jussi On Mon, Jan 30, 2017 at 1:07 AM, Marty wrote: > Jussi, > > >

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

2017-01-29 Thread Marty
Jussi, Sounds simple enough. Should the tmp directory be in the user’s home directory? If so is there a way Gambas can “know” the user id in order to create the directory? No, the files do not need to be deleted after each run if not in /tmp/Gambas.1000… Marty From: Jussi Lahtinen

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

2017-01-29 Thread Jussi Lahtinen
I suggest you copy the script and the python executables in dedicated folder made by your program. Example your program could create: /home/MyProgram/scripts Or /home/MyProgram/tmp And copy things there for the execution. Do you really need to remove the scripts after execution or are they

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

2017-01-29 Thread Marty
Fabien, I’m writing a control program that has one of its parts a window to display the bandspread form a radio receiver. The python program does this well. No need to reinvent the wheel. Hope this answers your question. Marty From: Fabien Bodard-4 [via Gambas]

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

2017-01-29 Thread gbwilly
On 2017-01-29 15:22, Marty wrote: > Jussi, > > > > I’ve found the answer. The file 1.tmp in directory > /tmp/Gambas.1000/3092 is created at the time COPY "update.sh" TO > sTempscript is executed. Because it is dynamically created it does not > have execute permissions. After executing COPY

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

2017-01-29 Thread Fabien Bodard
why a python program ?... 2017-01-29 15:22 GMT+01:00 Marty : > Jussi, > > > > I’ve found the answer. The file 1.tmp in directory /tmp/Gambas.1000/3092 is > created at the time COPY "update.sh" TO sTempscript is executed. Because it > is dynamically created it does not

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

2017-01-29 Thread Marty
Jussi, I’ve found the answer. The file 1.tmp in directory /tmp/Gambas.1000/3092 is created at the time COPY "update.sh" TO sTempscript is executed. Because it is dynamically created it does not have execute permissions. After executing COPY "update.sh" TO sTempscript set the permissions on

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

2017-01-29 Thread Charlie
Here is a little program that copies a small 'sh' file from the program's folder and runs it. Hope it helps. runscript.tar - Check out www.gambas.one -- View this message in context:

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

2017-01-28 Thread Jussi Lahtinen
Literally here: /tmp/gambas.1000/3092/1.tmp Read the error message carefully! Paste this into terminal and it will open the folder for you: nemo /tmp/gambas.1000/3092/ Jussi On Sat, Jan 28, 2017 at 11:25 PM, Marty wrote: > Jussi, > > > > Thanks for your response. I’ve

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

2017-01-28 Thread Marty
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

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

2017-01-28 Thread Jussi Lahtinen
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 < gam...@users.sourceforge.net> wrote: > Le 28/01/2017 à 20:03, Benoît

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

2017-01-28 Thread Benoît Minisini
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

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

2017-01-28 Thread Benoît Minisini
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

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

2017-01-28 Thread Marty
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

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

2008-11-22 Thread Nicolas Koch
Ok so I have created a gambas application and everything works except for exec or shell a bash script that is packaged in the data folder update.sh How do I get Gambas to run scripts packaged in project.gambas? - This SF.Net

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

2008-11-22 Thread Stefano Palmeri
Il sabato 22 novembre 2008 15:23:09 Nicolas Koch ha scritto: Ok so I have created a gambas application and everything works except for exec or shell a bash script that is packaged in the data folder update.sh How do I get Gambas to run scripts packaged in project.gambas?

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

2008-11-22 Thread Nicolas Koch
Stefano, Thank you so much. - DIM sTempScript as String sTempScript = Temp$ COPY update.sh TO sTempscript SHELL sTempScript WAIT Regards, Nick