LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   "xterm -e ls" and then I want that the xterm window wait (https://www.linuxquestions.org/questions/linux-general-1/xterm-e-ls-and-then-i-want-that-the-xterm-window-wait-784081/)

cstrieder 01-22-2010 02:21 PM

"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?

slacker_et 01-22-2010 02:25 PM

Code:

xterm -e "ls;read"
--ET

rweaver 01-22-2010 02:26 PM

add: read -p "Press any key to close window…"

cstrieder 01-22-2010 02:28 PM

I found the solution by my self:

-hold

Any way, thanks for the answers.

rweaver 01-22-2010 02:39 PM

That's one of the great things about *nix in general, there are a half dozen ways to approach any problem :)


All times are GMT -5. The time now is 08:39 AM.