Is it possible to send a command from the console, say tty1, to the terminal currently occupied with X (in my case tty7 as I use Debian), to tell for example mplayer to play a movie?
Edit - made a shorthand function with the commands I learned in the answer below:
function movie () {
ORIG_TTY=`fgconsole`
chvt 7
DISPLAY=":0" mplayer -fs $1 > /dev/null 2> /dev/null
chvt $ORIG_TTY
}
