Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-22-2010, 02:21 PM
|
#1
|
|
Member
Registered: Sep 2008
Location: Brazil
Distribution: Slackware
Posts: 56
Rep:
|
"xterm -e ls" and then I want that the xterm window wait
Hi,
I want to shut the command:
"xterm -e ls"
and then I want that the xterm wait until I close window or press some key...
How can I do that?
|
|
|
|
01-22-2010, 02:25 PM
|
#2
|
|
Member
Registered: Dec 2009
Distribution: Slackware
Posts: 108
Rep:
|
|
|
|
1 members found this post helpful.
|
01-22-2010, 02:26 PM
|
#3
|
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
add: read -p "Press any key to close window…"
|
|
|
1 members found this post helpful.
|
01-22-2010, 02:28 PM
|
#4
|
|
Member
Registered: Sep 2008
Location: Brazil
Distribution: Slackware
Posts: 56
Original Poster
Rep:
|
I found the solution by my self:
-hold
Any way, thanks for the answers.
|
|
|
|
01-22-2010, 02:39 PM
|
#5
|
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
That's one of the great things about *nix in general, there are a half dozen ways to approach any problem 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:46 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|