Re: [LIP] Executing commands on other terminals (ptys).

Raj Mathur <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Kandalaya
Message-ID <[email protected]>
On Thursday 25 January 2007 14:13, Logu wrote:
> Hi,
>
> We have test scripts which should be executed on 3 clients and 2
> server. Usually we login to each of these machines using ssh and
> issue the commands on each session. Is it possible to send the
> commands (as root user) to these terminal sessions from another
> terminal.

Not clear what precisely you need here, but you could try any of:

1. Use screen, so you only need one physical console to manage 
multiple terminals, or

2. Give the commands on the SSH command-line itself, as in:

  ssh user@host 'command1 ; command2' > cmd.out 2>&1

Regards,

-- Raju
-- 
Raj Mathur            [email protected]   http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.