View Single Post
Old 04-26-09, 06:12 AM   #5
dreame289
Registered User
 
Join Date: Apr 2009
Posts: 1
Default Re: Command-line to TTY1 from GUI

Assuming you're logged on to the console from the same user as is logged in the X session this should do the trick:

Code:
DISPLAY=:0 yourcommand
Hmm, re-read your post, the above may not be what you were asking for, closest method I can think of to achieve what you want is to redirect the output of a command run in a GUI terminal to /dev/tty1.

Code:
/bin/ls > /dev/tty1
.

Failing that, you can read into the use of the "screen" program.
dreame289 is offline   Reply With Quote