On Fri, Jul 23, 2010 at 3:59 PM, Noah <noah-l...@enabled.com> wrote:
> But what If I just want to send a bunch of lines of text without creating a
> file.   How can I do it?

It's not a Perl solution, but you can just echo the lines to ssh...

echo 'line1
line2
line3' | ssh ...

Be sure to escape single quotes. :)

$ echo 'line1
line2 with a single-quote: '\''
line3' | ssh ...

-- 
Brandon McCaig <bamcc...@gmail.com>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to