Article View: be.comp.programming
Article #4514Re: ssh en Perl
From: karel adams
Date: Thu, 07 Aug 2003 10:25
Date: Thu, 07 Aug 2003 10:25
39 lines
2124 bytes
2124 bytes
"Gunter Schelfhout" <nospam@please.com> schreef in bericht news:4ipYa.53120$F92.5515@afrodite.telenet-ops.be... > Roel Schroeven 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. > > > > :-s werkt hier ook niet. Als ik een klein perl-scriptje maak en dat > > aanroep met > > > > ssh localhost perl hello.pl > > > > werkt het wel?!? > > > > Je zal wel ge�nteresseerd zijn in de oplossing, neem ik aan. > > ssh <destination> perl -e " ' print qq(hallo) ' " > > [quote vanuit comp.lang.perl.misc] > > Using ssh like that results in double parsing of the command line, once > locally and once by the remote server. So your single quotes keep the > print and "hello\n" as one argument locally, but then the shell on > the remote end splits them into two arguments... tja als ge de oplossing kent is ieder probleem simpel... xou d'r niet opgekomen zijn ofschoon ik dit soort probs al regelmatig heb voorgehad.... thx for sharing KA
Technical Details
Message-ID:
<bgt9fm$r7m6v$1@ID-177484.news.uni-berlin.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!59.15-200-80.adsl.skynet.BE!not-for-mailReferences:
<nunYa.52958$F92.5531@afrodite.telenet-ops.be> <8%nYa.53004$F92.5533@afrodite.telenet-ops.be> <4ipYa.53120$F92.5515@afrodite.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII X-Google-Thread: fcea4,875a9a7209b8322a X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-08-07 03:28:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!59.15-200-80.adsl.skynet.BE!not-for-mail From: "karel adams" <adelco.gene.zever@skynet.be> Newsgroups: be.comp.programming Subject: Re: ssh en Perl Date: Thu, 7 Aug 2003 10:25:55 -0000 Lines: 41 Message-ID: <bgt9fm$r7m6v$1@ID-177484.news.uni-berlin.de> References: <nunYa.52958$F92.5531@afrodite.telenet-ops.be> <8%nYa.53004$F92.5533@afrodite.telenet-ops.be> <4ipYa.53120$F92.5515@afrodite.telenet-ops.be> NNTP-Posting-Host: 59.15-200-80.adsl.skynet.be (80.200.15.59) X-Trace: news.uni-berlin.de 1060251958 28563679 80.200.15.59 (16 [177484]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165