[Gambas-user] how-to execute file or bash script packaged inside gambas
Stefano Palmeri
rospolosco at ...152...
Sat Nov 22 16:33:57 CET 2008
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?
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
---------------------------------------------
DIM sTempScript as String
sTempScript = Temp$
COPY "update.sh" TO sTempscript
SHELL sTempScript WAIT
--------------------------------------------
This works if update.sh is in the project folder. If you create
a sub-folder to store your data the code is:
COPY "your_sub-folder/update.sh" TO sTempscript
Bye,
Stefano
More information about the User
mailing list