How to save and execute Bash scripts in Geany?

Booting, installing, newbie
Post Reply
Message
Author
Umren
Posts: 5
Joined: Sun 29 Mar 2009, 19:21

How to save and execute Bash scripts in Geany?

#1 Post by Umren »

how to save and execute bash scripts in geany? let's say i got some script and i press "execute!"

and that's what happen here... what im doing wrong? just black screen every time
Attachments
2feb8f9eb594.jpg
geany won't load!
(29.59 KiB) Downloaded 2849 times

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#2 Post by Béèm »

Verify that the script you save is executable.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Umren
Posts: 5
Joined: Sun 29 Mar 2009, 19:21

#3 Post by Umren »

Béèm wrote:Verify that the script you save is executable.
It is, on properties it is executable. And i can execute it from terminal, but geany just won't execute it! WTF! :x

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#4 Post by Béèm »

OK then. Never tried to execute a script from within Geany.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

potong
Posts: 88
Joined: Fri 06 Mar 2009, 04:01

#5 Post by potong »

Hi Umren

Have you tried setting the terminal?

Go to Edit/Preferences/Tools and set Tool Paths: Terminal to /usr/bin/rxvt

You must save the script first and chmod +x <scriptname>

Hope this helps

Potong

Umren
Posts: 5
Joined: Sun 29 Mar 2009, 19:21

#6 Post by Umren »

potong wrote:Hi Umren

Have you tried setting the terminal?

Go to Edit/Preferences/Tools and set Tool Paths: Terminal to /usr/bin/rxvt

You must save the script first and chmod +x <scriptname>

Hope this helps

Potong
Yeah, terminal is setted just like u tell me. File chmod'ed -x too.

Still same screen, very sad! have to go to terminal for execute file :)

but i want 1 button exec from geany! lol

User avatar
hillside
Posts: 633
Joined: Sun 02 Sep 2007, 18:59
Location: Minnesota, USA. The frozen north.

#7 Post by hillside »

My terminal is set to:

/usr/X11R7/bin/xterm

If my file has been correctly saved as executable, it operates in Geany perfectly.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#8 Post by muggins »

Same settings as hillside. I opened geany, entered your "Hello World" script, and it ran as expected. So not sure why it's not working for you?

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#9 Post by Master_wrong »

try run them on puppy 301...

I find that in 301 the script will run fine but in 4.2 will not run.

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#10 Post by gposil »

Change your terminal setting to /usr/X11R7/bin/xterm -e bash -c.

Then it works...geany has changed.
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#11 Post by ecomoney »

Master_Wrong,

Please will you file a bug report in this section as you are familiar with the problem. We can hopefully clear it up for the next 4.2.1 release

Many thanks
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#12 Post by Master_wrong »

Please will you file a bug report in this section as you are familiar with the problem. We can hopefully clear it up for the next 4.2.1 release
but the solution is available already...

Change your terminal setting to /usr/X11R7/bin/xterm -e bash -c.
clue ----> geany , preference, tool

Post Reply