Running a shell script from a GUI?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Spalding

Running a shell script from a GUI?

Post by Spalding »

I am using Mint 9 Fluxbox Edition, and I want to be able to run a script from the Fluxbox Menu and see the output that I would see in a terminal window if I ran it from terminal.

Is there an easy way to do this? Sure seems like there oughtta be!

On a related note, is there a good shell scripting forum somewhere (oriented more towards beginners)? This is the best fit I can see here.

Here is the top Google hit, looks pretty good.
http://www.unix.com/shell-programming-scripting/

Thanks!

Edit: Zenity?
http://www.freesoftwaremagazine.com/col ... action_gui
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kwevej

Re: Running a shell script from a GUI?

Post by kwevej »

try this:

gnome-terminal --hide-menubar -t 'YourTitle' -e "find"

replace find with your command
Spalding

Re: Running a shell script from a GUI?

Post by Spalding »

That came pretty close, kwevej! I replaced gnome-terminal with lxterminal and got rid of the --hide-menubar and I saw a terminal window open and then close. I have a line in the end of my script read -p "variable" to pause the script at the end to allow the output to be read. That works in a terminal window but not in the one started via the Fluxbox menu.
Locked

Return to “Software & Applications”