Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2005, 07:02 PM   #1
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 40

Rep: Reputation: 15
keeping xterm awake

If I open a command console and execute...

xterm -geometry 50x3 -bg cyan -fg red +sb

I get a nice little xterm started up with my (badly) chosen colours.

But - if I try -e to make it run something...

xterm -geometry 50x3 -bg cyan -fg red +sb -e pwd
(in this case, I want the new xterm to show current working directory)
...the xterm closes as soon as the command is executed

Main Question:
What option do I use to keep it open?

Other Questions:
Also how might I string commands together into the new xterm using the -e without making a whole 'nother shell script (e.g; I might want the new (pop up) xterm windows to perform ls $HOME && echo -n "You are in " && pwd && sleep 5
...I've noticed using an exclamation mark ( echo "boo!" ) causes "bash: !": event not found" errors. Is there a way around this?
Old 05-06-2005, 07:41 PM   #2
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 40

Original Poster
Rep: Reputation: 15
Okay - I found the -hold option works with xterm to make it stop it from disappearing. Bow all I need to know is those other questions about how to string commands together ans the echo '!" problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is samba awake? Jan Tanjo Linux - Networking 14 01-16-2005 07:58 PM
awake jobs at specified time merlin23 Linux - Newbie 5 12-02-2004 12:34 PM
longest time awake without sleeping? nixel General 25 05-09-2004 01:42 PM
Staying awake houseathon General 20 10-01-2003 01:13 AM
How do you stay awake? bkeating General 20 01-25-2003 04:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration