LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 42

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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

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