Re: Send commands to ssh
- From: Florian Diesch <diesch@xxxxxxxxxxxxx>
- Date: Tue, 18 Dec 2007 03:47:39 +0100
Horacius ReX <horacius.rex@xxxxxxxxx> wrote:
Florian Diesch wrote:
Horacius ReX <horacius.rex@xxxxxxxxx> wrote:
So I wonder how is it possible to send commands to ssh. For instance a
script.
ssh reads commands from STDIN (like normal shells do):
echo 'hostname; ls'|ssh some_host
Please don't top post.
this is just what i needed !
but in this case, can i also echo a script ?
Everything ssh reads from STDIN gets executed line by line on the remote
host.
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
.
- References:
- Send commands to ssh
- From: Horacius ReX
- Re: Send commands to ssh
- From: Florian Diesch
- Re: Send commands to ssh
- From: Horacius ReX
- Send commands to ssh
- Prev by Date: blinking title
- Next by Date: Re: Can this drawing task be done in Linux?
- Previous by thread: Re: Send commands to ssh
- Next by thread: Tabac en ligne - Tabac en ligne
- Index(es):
Relevant Pages
|
|