[Help] Centos terminal

soulofangel

Member
Joined
Feb 9, 2013
Messages
234
Reaction score
0
I want to use bash from terminal A to send a command to terminal B.

How do i do that?

Does named pipe help me accomplish this?



Thanks :)
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
I want to use bash from terminal A to send a command to terminal B.

How do i do that?

Does named pipe help me accomplish this?



Thanks :)

SSH is what you want to use. Deploy your public key into the user account you want to login at Terminal B. Then you can easily run ssh securely across the wire running external command in Terminal B as such

Code:
ssh remote_user@terminal_B <command>


Unless your need to pseudo terminal, not system terminal. Then your answer is found here
http://www.humbug.in/2010/utility-to-send-commands-or-data-to-other-terminals-ttypts/
 
Last edited:

soulofangel

Member
Joined
Feb 9, 2013
Messages
234
Reaction score
0
SSH is what you want to use. Deploy your public key into the user account you want to login at Terminal B. Then you can easily run ssh securely across the wire running external command in Terminal B as such

Code:
ssh remote_user@terminal_B <command>


Unless your need to pseudo terminal, not system terminal. Then your answer is found here
Utility to Send Commands or Data to Other Terminals (tty/pts) - Pratik Sinha

The pseudo terminal is what i am looking for. Thank you :)
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top