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: