On Fri, Jul 23, 2010 at 3:59 PM, Noah <[email protected]> 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 <[email protected]>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <[email protected]>

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to