🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4391

Re: ssh en Perl

#4391
From: Elie De Brauwer
Date: Wed, 27 Aug 2003 15:38
27 lines
1684 bytes
On Thu, 07 Aug 2003 07:47:31 +0000, Gunter Schelfhout wrote:

> Ik tracht remote een klein Perl-script uit te voeren, maar dat lukt niet
> echt. Zelfs:
> ssh <destination> perl -e 'print "hallo";'
> wil niet werken.
> 
> Iemand een idee.


It's all in the quotes 

helios@kafka:~$ ssh root@localhost "perl -e 'print \"hello\\n\";'"
root@localhost's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
hello
helios@kafka:~$


ssh neemt slechts 1 string als argument


hth
-- 
http://www.de-brauwer.be

remove NOSPAM
Technical Details
Message-ID: <pan.2003.08.27.16.36.10.1531@NOSPAMde-brauwer.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <nunYa.52958$F92.5531@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,875a9a7209b8322a
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-08-27 08:40:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: Elie De Brauwer <elie@NOSPAMde-brauwer.be>
Organization: wwww.de-brauwer.be
Subject: Re: ssh en Perl
User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!)
Message-ID: <pan.2003.08.27.16.36.10.1531@NOSPAMde-brauwer.be>
Newsgroups: be.comp.programming
References: <nunYa.52958$F92.5531@afrodite.telenet-ops.be>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 28
Date: Wed, 27 Aug 2003 15:38:10 GMT
NNTP-Posting-Host: 213.224.101.38
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1061998690 213.224.101.38 (Wed, 27 Aug 2003 17:38:10 MEST)
NNTP-Posting-Date: Wed, 27 Aug 2003 17:38:10 MEST