[Top][All Lists]

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

Re: here document in recipe

From: Stephan Beal
Subject: Re: here document in recipe
Date: Tue, 22 Nov 2011 14:18:00 +0100

On Tue, Nov 22, 2011 at 12:04 PM, Warlich, Christof <
address@hidden> wrote:

> How could I convice Make to accept something similar, considering that I
> have
> quite a number of commands to be executed through ssh, but avoiding to have
> a dedicated script file to be copied to the remote host first?

When i've needed to do that, i've echoed the commands into a local temp
file and then feed the file to ssh (without using scp):

{ \
  echo "command 1;"; \
  echo  "commnd 2;"; \
} > tmpfile
ssh ... < tmpfile
rm -f tmpfile

----- stephan beal

reply via email to

[Prev in Thread] Current Thread [Next in Thread]