Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Net::Sftp

Reply
Thread Tools

Net::Sftp

 
 
gil
Guest
Posts: n/a
 
      09-07-2007
Hi,

I'm trying to use Net::Sftp on windows XP,
I already downloaded Net::SSH::W32Perl and Net::Sftp.

the thing is - when trying to use, I get this error message yelling
about the use of "getpid()" on SSH/Perl.pm, when disabling the line -
some local variable $home isn't initialized.

does some one know how can I make theses two fellows (SSH, Sftp) work
harmonically on windows?

thanks,
Gil

 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      09-07-2007
gil <> wrote in news:1189182946.304387.5760
@r34g2000hsd.googlegroups.com:

> Hi,
>
> I'm trying to use Net::Sftp on windows XP,
> I already downloaded Net::SSH::W32Perl and Net::Sftp.
>
> the thing is - when trying to use, I get this error message yelling
> about the use of "getpid()" on SSH/Perl.pm, when disabling the line -
> some local variable $home isn't initialized.


Please read the posting guidelines and show a small example.

Does setting $ENV{HOME} to something meaningful help?

> does some one know how can I make theses two fellows (SSH, Sftp) work
> harmonically on windows?


ITYM "harmoniously"

http://en.wikipedia.org/wiki/Harmonic

Sinan

--
A. Sinan Unur <>
(remove .invalid and reverse each component for email address)
clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>

 
Reply With Quote
 
 
 
 
gil
Guest
Posts: n/a
 
      09-07-2007
On Sep 7, 7:52 pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:
> gil <gil.kov...@gmail.com> wrote in news:1189182946.304387.5760
> @r34g2000hsd.googlegroups.com:
>
> > Hi,

>
> > I'm trying to use Net::Sftp on windows XP,
> > I already downloaded Net::SSH::W32Perl and Net::Sftp.

>
> > the thing is - when trying to use, I get this error message yelling
> > about the use of "getpid()" on SSH/Perl.pm, when disabling the line -
> > some local variable $home isn't initialized.

>
> Please read the posting guidelines and show a small example.

I.E:

use Net::SFTP;
my $sftp = Net::SFTP->new($host);

>
> Does setting $ENV{HOME} to something meaningful help?


Haven't tried it yet, I don't know which value should I set in
$ENV{HOME}.

>
> > does some one know how can I make theses two fellows (SSH, Sftp) work
> > harmonically on windows?

>
> ITYM "harmoniously"
>
> http://en.wikipedia.org/wiki/Harmonic
>
> Sinan
>
> --
> A. Sinan Unur <1...@llenroc.ude.invalid>
> (remove .invalid and reverse each component for email address)
> clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>



 
Reply With Quote
 
sagar gadge
Guest
Posts: n/a
 
      09-10-2007
On Sep 8, 1:29 am, gil <gil.kov...@gmail.com> wrote:
> On Sep 7, 7:52 pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:> gil <gil.kov...@gmail.com> wrote in news:1189182946.304387.5760
> > @r34g2000hsd.googlegroups.com:

>
> > > Hi,

>
> > > I'm trying to use Net::Sftp on windows XP,
> > > I already downloaded Net::SSH::W32Perl and Net::Sftp.

>
> > > the thing is - when trying to use, I get this error message yelling
> > > about the use of "getpid()" on SSH/Perl.pm, when disabling the line -
> > > some local variable $home isn't initialized.

>
> > Please read the posting guidelines and show a small example.

>
> I.E:
>
> use Net::SFTP;
> my $sftp = Net::SFTP->new($host);
>
>
>
> > Does setting $ENV{HOME} to something meaningful help?

>
> Haven't tried it yet, I don't know which value should I set in
> $ENV{HOME}.
>
>
>
>
>
> > > does some one know how can I make theses two fellows (SSH, Sftp) work
> > > harmonically on windows?

>
> > ITYM "harmoniously"

>
> >http://en.wikipedia.org/wiki/Harmonic

>
> > Sinan

>
> > --
> > A. Sinan Unur <1...@llenroc.ude.invalid>
> > (remove .invalid and reverse each component for email address)
> > clpmisc guidelines: <URL:http://www.augustmail.com/~tadmc/clpmisc.shtml>- Hide quoted text -

>
> - Show quoted text -


Why not include - "use Env;" in your program ??? It will pick the
value correctly..

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57