[Gambas-user] Execute script from ide

Bruce Steers bsteers4 at gmail.com
Wed Sep 20 10:00:29 CEST 2023


On Wed, 20 Sep 2023, 08:39 Marco Ancillotti, <gambas at servinfo.it> wrote:

> Hi all ,
>
> I usually have some script on a project because I use that to make some
> internal processing or to load the binary to the
> right server.
>
> When I right click on that from the ide I see the usual stuff ( open ,
> open with , duplicate , ... ) .
>
> Is possible to add a menu item to run the script on a window ?
>
> It will speed up my works a lot since I write script directly from the
> ide and every time I need to run one I need to go to tools ,
> open terminal , run script by hand and then close the terminal.
>
> I think we need simply to check if file have execute permission and
> launch it the default terminal app.
>
> Thanks in advance,
> Marco.
>

There is an option to run a command when you hit "make executable"
Maybe you can use that?

I have "external tools" like the pluma plugin with my gambas so I could
just use that.

You should also be able to right click the script and select "open in file
manager" then just double click the script to run it. (On systems that
allow script execution from double click)

Ps. If you use the command..
bash ./scriptname

Then it don't need to be executable or need a shebang.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230920/38b9e2ad/attachment.htm>


More information about the User mailing list