Re: pseudo terminals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux