pseudo terminals

devi devi at atc.tcs.com
Wed Sep 16 23:43:31 UTC 2009


But the command got executed, and it gave the status of apache
on /dev/pts/1 terminal.


On Wed, 2009-09-16 at 11:18 +0100, Dave Mitchell wrote:
> On Wed, Sep 16, 2009 at 03:06:09PM -0400, devi wrote:
> > Hi,
> > 	The command 
> > echo "service httpd status " > /dev/pts/1 is executed on one terminal,
> > let us assume it as t1.  
> > The echo command is executed on t1 but the output(service httpd status"
> > is directed to /dev/pts/1 terminal.
> > 
> > What I am saying is that the output  is redirected directly to the
> > terminal /dev/pts1/1.
> > The output here is "service httpd status", which is generally a command.
> > And so it gets executed.
> 
> No, the text just appears in the terminal associated with /dev/pts1/1;
> it does not not cause the command to be executed. That is to say,
> you can't use this as a mechanism to insert characters into a another
> terminal's input buffer.
> 
> -- 
> Red sky at night - gerroff my land!
> Red sky at morning - gerroff my land!
>     -- old farmers' sayings #14
> 




More information about the fedora-list mailing list