[Gambas-user] I need a shell script

Stefano Palmeri rospolosco at ...152...
Mon Apr 27 10:56:40 CEST 2009


Il lunedì 27 aprile 2009 03:33:00 jbskaggs ha scritto:
> I am having a sudo (permission) problem in my gamemaker program.  It
> creates the code and writes it to the MMain.Module and creates the .Project
> file.
>
> Now I need to be able to shell from my program to a directory and run the
> gbc2 and gba2 commands.
>
> I have tried several different shell commands and I have tried a script:
>
> cd mypathtoproject
> gbc2
> gba2
>
> but I get a permission not granted error.  I have tired calling the script
> from shell with sudo
>
> Shell "sudo " & "scriptname.sh"
>
> but it asks for password then hangs.
>
> This is really simple but I am somehow bungling it as usual.
>
> So could someone one correct my script and to tell me how to call it?
>
> JB Skaggs

Attached a little example.

Stefano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sudo-0.0.1.tar.gz
Type: application/x-tgz
Size: 7871 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20090427/562b79e8/attachment.bin>


More information about the User mailing list