Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am a beginner in Linux, so excuse me if the question is simple.

I use xterm in wine as follows:

wine cmd
z:\usr\bin\xterm -e application

xterm will open a new window, runs the application and then close the window. How to make xterm print its output in the same terminal window that I was using initially?

I hope that the question is clear.

Extra info: My OS is Linux Redhat RHEL 6.3 with Linux Kernel: 2.6.32

share|improve this question
Why do you want to run application in a separate terminal window? – user1146332 Mar 4 at 16:35
@user1146332 No. I want to run $application in the same terminal window, while xterm runs it in a separate one. thanks – M.A Mar 4 at 16:46
3  
xterm is a terminal window. If you want to run application in the console window, just type application at the command prompt-- no xterm. – alexis Mar 4 at 17:29
@alexis Thanks for the comment. In fact, I don't call the $application directly but through a console of another program called WinEdt (which is run via wine). If I call the linux application in WinEdt without xterm it won't display any output!, however, it will display it in a separate window with xterm. I want to make the application display its output to WinEdt console. Sorry if it looks complicated now!! – M.A Mar 4 at 22:39
2  
You run a Windows port of xterm in Wine? Why??? Xterm doesn't produce any output, so your question doesn't make sense. Do you want to see the output of the application? If so, what's wrong with running it directly (wine application)? – Gilles Mar 4 at 23:13
show 4 more comments

closed as too localized by Michael Mrozek Mar 13 at 13:15

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.