How to get it to run in Terminal

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

How to get it to run in Terminal

#1 Post by steve_s »

Man, I suck at writing scripts...that's how you learn, right? Keep asking questions...

Here is what I want: I have a desktop icon that I click on that runs a script...I want the script to then open up a terminal window/rxvt then run all the commands from the script within that terminal window...

I can get a terminal window to open, and I can get the script to run (in a seperate terminal), but not all in one; I just can't get it to open up a terminal then run everything within that terminal...

Any suggestions? I'm sure it's something simple I'm missing...

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

rxvt -e

That closes the terminal when finished though - there is another xterm parameter that doesn't close it, but rxvt doesn't support it. Barry wrote a wrapper script for rxvt for either Puppy 4.0 or 4.1 (I think 4.1) to implement it, so you could have a look for that.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#3 Post by steve_s »

Thanks, disciple...man, I've got some things to learn... :?

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#4 Post by amigo »

xterm -hold -e "commands" is probably what you mean. You may be able to have the terminal window stay alive after the script is finished by using:
rxvt -e "sh -c 'commands'"

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#5 Post by steve_s »

amigo wrote:xterm -hold -e "commands" is probably what you mean. You may be able to have the terminal window stay alive after the script is finished by using:
rxvt -e "sh -c 'commands'"
...didn't know where to put -hold...thanks! Works great now...very appreciated, both.

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#6 Post by alienjeff »

Meet two new friends:

Code: Select all

rxvt -h

Code: Select all

rxvt --help
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

Post Reply