[29699] in Perl-Users-Digest
Perl-Users Digest, Issue: 943 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Oct 16 21:14:18 2007
Date: Tue, 16 Oct 2007 18:14:12 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 16 Oct 2007 Volume: 11 Number: 943
Today's topics:
SCP putting file problem <lerameur@yahoo.com>
Re: SCP putting file problem <glex_no-spam@qwest-spam-no.invalid>
Re: SCP putting file problem <rkb@i.frys.com>
Re: SCP putting file problem <lerameur@yahoo.com>
Re: SCP putting file problem <lerameur@yahoo.com>
Re: SCP putting file problem <lerameur@yahoo.com>
Re: SCP putting file problem <rkb@i.frys.com>
Re: SCP putting file problem <mritty@gmail.com>
Re: SCP putting file problem <lerameur@yahoo.com>
Re: The Latest HTML to LaTeX Conversion Tool <bik.mido@tiscalinet.it>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 16 Oct 2007 19:51:10 -0000
From: lerameur <lerameur@yahoo.com>
Subject: SCP putting file problem
Message-Id: <1192564270.316518.79920@q5g2000prf.googlegroups.com>
hello,
I am getting an error while I am using the SCP put command:
here is the error:
Use of uninitialized value in die at ./spam_parsing.pl line 259,
<GEN2> line 2.
Died at ./spam_parsing.pl line 259, <GEN2> line 2.
from the line code 259:
$SCP->put("$file_to_put") or die SCP->{"errstr"};
print "Putting file and quitting \n";
It is logging in fine but the script exits when it reaches this
command.
I did put a print out to the "$file_to_put " file right before the
$SCP->put(".. line and it prints out fine, so the file is not a
problem.
anyone has an idea?
k
------------------------------
Date: Tue, 16 Oct 2007 14:55:53 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: SCP putting file problem
Message-Id: <47151749$0$10301$815e3792@news.qwest.net>
lerameur wrote:
> hello,
>
> I am getting an error while I am using the SCP put command:
>
> here is the error:
> Use of uninitialized value in die at ./spam_parsing.pl line 259,
> <GEN2> line 2.
> Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> from the line code 259:
> $SCP->put("$file_to_put") or die SCP->{"errstr"};
^$SCP
[...]
> anyone has an idea?
Add the following to the top of your script:
use strict;
------------------------------
Date: Tue, 16 Oct 2007 20:03:15 -0000
From: Ron Bergin <rkb@i.frys.com>
Subject: Re: SCP putting file problem
Message-Id: <1192564995.682860.272550@y27g2000pre.googlegroups.com>
On Oct 16, 12:51 pm, lerameur <leram...@yahoo.com> wrote:
> hello,
>
> I am getting an error while I am using the SCP put command:
>
> here is the error:
> Use of uninitialized value in die at ./spam_parsing.pl line 259,
> <GEN2> line 2.
> Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> from the line code 259:
> $SCP->put("$file_to_put") or die SCP->{"errstr"};
Shouldn't that be:
$SCP->put($file_to_put) or die $SCP->{errstr};
> print "Putting file and quitting \n";
>
> It is logging in fine but the script exits when it reaches this
> command.
>
> I did put a print out to the "$file_to_put " file right before the
> $SCP->put(".. line and it prints out fine, so the file is not a
> problem.
> anyone has an idea?
>
> k
------------------------------
Date: Tue, 16 Oct 2007 20:27:44 -0000
From: lerameur <lerameur@yahoo.com>
Subject: Re: SCP putting file problem
Message-Id: <1192566464.736355.73300@t8g2000prg.googlegroups.com>
On Oct 16, 4:03 pm, Ron Bergin <r...@i.frys.com> wrote:
> On Oct 16, 12:51 pm, lerameur <leram...@yahoo.com> wrote:
>
> > hello,
>
> > I am getting an error while I am using the SCP put command:
>
> > here is the error:
> > Use of uninitialized value in die at ./spam_parsing.pl line 259,
> > <GEN2> line 2.
> > Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> > from the line code 259:
> > $SCP->put("$file_to_put") or die SCP->{"errstr"};
>
> Shouldn't that be:
> $SCP->put($file_to_put) or die $SCP->{errstr};
>
> > print "Putting file and quitting \n";
>
> > It is logging in fine but the script exits when it reaches this
> > command.
>
> > I did put a print out to the "$file_to_put " file right before the
> > $SCP->put(".. line and it prints out fine, so the file is not a
> > problem.
> > anyone has an idea?
>
> > k
I tried both with and without quote and I get the same error message
k
------------------------------
Date: Tue, 16 Oct 2007 20:28:16 -0000
From: lerameur <lerameur@yahoo.com>
Subject: Re: SCP putting file problem
Message-Id: <1192566496.364820.102490@q5g2000prf.googlegroups.com>
On Oct 16, 4:03 pm, Ron Bergin <r...@i.frys.com> wrote:
> On Oct 16, 12:51 pm, lerameur <leram...@yahoo.com> wrote:
>
> > hello,
>
> > I am getting an error while I am using the SCP put command:
>
> > here is the error:
> > Use of uninitialized value in die at ./spam_parsing.pl line 259,
> > <GEN2> line 2.
> > Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> > from the line code 259:
> > $SCP->put("$file_to_put") or die SCP->{"errstr"};
>
> Shouldn't that be:
> $SCP->put($file_to_put) or die $SCP->{errstr};
>
> > print "Putting file and quitting \n";
>
> > It is logging in fine but the script exits when it reaches this
> > command.
>
> > I did put a print out to the "$file_to_put " file right before the
> > $SCP->put(".. line and it prints out fine, so the file is not a
> > problem.
> > anyone has an idea?
>
> > k
I tried both with and without quote and I get the same error message
k
------------------------------
Date: Tue, 16 Oct 2007 20:36:02 -0000
From: lerameur <lerameur@yahoo.com>
Subject: Re: SCP putting file problem
Message-Id: <1192566962.979397.71980@i38g2000prf.googlegroups.com>
On Oct 16, 4:28 pm, lerameur <leram...@yahoo.com> wrote:
> On Oct 16, 4:03 pm, Ron Bergin <r...@i.frys.com> wrote:
>
>
>
> > On Oct 16, 12:51 pm, lerameur <leram...@yahoo.com> wrote:
>
> > > hello,
>
> > > I am getting an error while I am using the SCP put command:
>
> > > here is the error:
> > > Use of uninitialized value in die at ./spam_parsing.pl line 259,
> > > <GEN2> line 2.
> > > Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
I added
use strict;
here is the error message I am getting:
Can't use bareword ("SCP") as a HASH ref while "strict refs" in use
at ./spam_parsing.pl line 289.
k
------------------------------
Date: Tue, 16 Oct 2007 20:43:42 -0000
From: Ron Bergin <rkb@i.frys.com>
Subject: Re: SCP putting file problem
Message-Id: <1192567422.567672.179040@v29g2000prd.googlegroups.com>
On Oct 16, 1:27 pm, lerameur <leram...@yahoo.com> wrote:
> On Oct 16, 4:03 pm, Ron Bergin <r...@i.frys.com> wrote:
>
>
>
> > On Oct 16, 12:51 pm, lerameur <leram...@yahoo.com> wrote:
>
> > > hello,
>
> > > I am getting an error while I am using the SCP put command:
>
> > > here is the error:
> > > Use of uninitialized value in die at ./spam_parsing.pl line 259,
> > > <GEN2> line 2.
> > > Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> > > from the line code 259:
> > > $SCP->put("$file_to_put") or die SCP->{"errstr"};
>
> > Shouldn't that be:
> > $SCP->put($file_to_put) or die $SCP->{errstr};
>
> > > print "Putting file and quitting \n";
>
> > > It is logging in fine but the script exits when it reaches this
> > > command.
>
> > > I did put a print out to the "$file_to_put " file right before the
> > > $SCP->put(".. line and it prints out fine, so the file is not a
> > > problem.
> > > anyone has an idea?
>
> > > k
>
> I tried both with and without quote and I get the same error message
>
> k
The quote is not the key issue. You forgot the $
Look closely at the difference between these:
die SCP->{"errstr"}
die $SCP->{"errstr"}
------------------------------
Date: Tue, 16 Oct 2007 15:52:19 -0700
From: Paul Lalli <mritty@gmail.com>
Subject: Re: SCP putting file problem
Message-Id: <1192575139.744628.71250@i13g2000prf.googlegroups.com>
On Oct 16, 3:51 pm, lerameur <leram...@yahoo.com> wrote:
> hello,
>
> I am getting an error while I am using the SCP put command:
>
> here is the error:
> Use of uninitialized value in die at ./spam_parsing.pl line 259,
> <GEN2> line 2.
> Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> from the line code 259:
> $SCP->put("$file_to_put") or die SCP->{"errstr"};
You need to reread the Net::SCP documentation better.
>From http://search.cpan.org/~ivan/Net-SCP-0.07/SCP.pm
$scp->get("filename") or die $scp->{errstr};
$scp->put("filename") or die $scp->{errstr};
Paul Lalli
------------------------------
Date: Wed, 17 Oct 2007 00:43:02 -0000
From: lerameur <lerameur@yahoo.com>
Subject: Re: SCP putting file problem
Message-Id: <1192581782.073611.89730@i38g2000prf.googlegroups.com>
On Oct 16, 6:52 pm, Paul Lalli <mri...@gmail.com> wrote:
> On Oct 16, 3:51 pm, lerameur <leram...@yahoo.com> wrote:
>
> > hello,
>
> > I am getting an error while I am using the SCP put command:
>
> > here is the error:
> > Use of uninitialized value in die at ./spam_parsing.pl line 259,
> > <GEN2> line 2.
> > Died at ./spam_parsing.pl line 259, <GEN2> line 2.
>
> > from the line code 259:
> > $SCP->put("$file_to_put") or die SCP->{"errstr"};
>
> You need to reread the Net::SCP documentation better.>Fromhttp://search.cpan.org/~ivan/Net-SCP-0.07/SCP.pm
>
> $scp->get("filename") or die $scp->{errstr};
> $scp->put("filename") or die $scp->{errstr};
>
> Paul Lalli
well I fixed the perl problem, forgot the $ like Ron mentionned
I am faced with another problem
I am getting this error message. This is a non perl issue.
Permission denied (publickey,password,keyboard-interactive).
I followed the tutorial on this link:
http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html
and also from other post here a few days ago.
but I still get the error message.
I created a key in .ssh/id_rsa.pub and copy that into the .ssh/
known_hosts in the receiving server
any help appreciated
thanks
ken
------------------------------
Date: Wed, 17 Oct 2007 00:44:38 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: The Latest HTML to LaTeX Conversion Tool
Message-Id: <koeah3t6mprh43vkpd2vfis3l15htl0a3k@4ax.com>
On Tue, 16 Oct 2007 21:04:42 -0000, vasan999@hotmail.com wrote:
>https://sourceforge.net/projects/html2latex/ <-------- perl
>
>https://sourceforge.net/projects/htmltolatex/ <---------- java
>
>> : The perl one does not run due to path problems.
>>
>> What did you try? Perl is soooo simple when it comes to path problems
>> that you should be able to fix it yourself.
>
>It is quite complicated and not clear to me how to do it.
The release date is September 24, 2000 - that is, not very recent.
I see that you're under Windows, and the program is probably better
targeted at starnices. However it comes with two *.win.txt docs that
give you instructions as to how to run under Windows. Basically the
program consists of a html2latex script and a HTML::Latex module,
which is pure Perl, thus without fiddling with *make you can simply
put HTML/Latex.pm in a directory which is @INC. You can list all such
directories for your system with
perl -le "print for @INC"
If your perl is AS's ActivePerl, then chances are that the output is
C:/Programmi/Perl/site/lib
C:/Programmi/Perl/lib
.
You can add more to the PERL5LIB env variable. If you -as is likely-
have the .pl extension associated to Perl, then you can rename
html2latex to html2latex.pl and put it anywhere in the PATH, then you
can run it just by typing its name. If you additionally add .pl to the
PATHEXT env variable then you can omit the extension. That is, you can
call the program like
html2latex [options] <filename>
HTH,
Michele
--
>It's because the universe was programmed in C++.
No, no, it was programmed in Forth. See Genesis 1:12:
"And the earth brought Forth ..."
- Robert Israel in sci.math, thread "Why numbers?"
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 943
**************************************