[nos-bbs] JNOS TTY console - No Visual

Wm Lewis thunderft at hotmail.com
Mon Feb 7 13:46:02 EST 2011


Bob:
 
I did your experiment, and did use tty2 and tty3
 
On the first attempt, it worked with no errors.
On tty3 the output showed like this:
 
"root at linux:~# foobar"
 
Notice that on this output, it includes the command promt.
 
 
Now I did not use the CHOWN command as again, I had no errors.
 
 
So, on tty2 I did the second test using the "2>&1" at the end.
This also worked. On tty3 the output was this:
 
"foobar"
 
 
Notice this time there was no command prompt prefixing the "foobar".
 
So, both tests are completed.
 
What did they tell you?
 
Bill

 
 
 
Date: Sat, 5 Feb 2011 12:27:14 -0500
From: k8rra at ameritech.net
To: nos-bbs at tapr.org
Subject: Re: [nos-bbs] JNOS TTY console - No Visual

OK Bill -- got time for an experiment?
 
Select an unused tty console and log in - say tty2.
Select another unused tty to observe - say tty3.
On tty2 session, run the following command:
  ...$ exec echo "foobar" >  /dev/tty3
Switch to tty3 to validate the text is displayed now.
Log in again on tty2 [the "exec" will result in a logout].
If this fails for the reason of "permission denied"
 
    then do this:
       ...$ sudo chown me /dev/tty3
                        where: "me" is the UID that you are logged in
    under on tty2
    Now repeat the first command
 
Presuming success with the first command by now, add to the command per:
  ...$ exec echo "foobar" >  /dev/tty3  2>&1
Again switch to tty3 to see the new text.
 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20110207/5ec794bd/attachment.html>


More information about the nos-bbs mailing list