View Single Post
Old 04-28-09, 02:58 AM   #6
Registered User
Join Date: Dec 2008
Posts: 55
Default Re: Command-line to TTY1 from GUI

Originally Posted by dreame289 View Post
Assuming you're logged on to the console from the same user as is logged in the X session this should do the trick:

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.

/bin/ls > /dev/tty1

Failing that, you can read into the use of the "screen" program.
That isn't quite what I want.

Read my other post and you'll see what I'm basically trying to do.
AwesomeTux is offline   Reply With Quote