FW: Net::SSH::W32Perl

2004-05-11 Thread Kaufman Eran (StarHome)








Hi,

 

I'm
trying to write some scripts to connect remote WIN2K machines over ssh (main
platform is WIN2K server as well).

I've
already installed Net::SSH::W32Perl, and tried few very simple commands to see
the output, but nothing.

Here's
an example of the code:

 

use
Net::SSH::W32Perl;

my $host = '10.10.10.10';

my $ssh = new Net::SSH::W32Perl($host);

$ssh->login('user',
'passwd');

my
($out, $err, $exit) = $ssh->cmd('pwd');

 

While
running it from debugger, non of $out, $err, $exit gets a value???

Can
someone assist this issue, or might have another, not complicated idea, how to
perform it?

 

Many
thanks,

Eran

 






___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Stop remote service

2003-12-10 Thread Kaufman Eran (StarHome)








Hi,

 

Is there a way
to stop remote service? (Remote machine can be either NT or W2K).

Do I need any
specific permission for that?

 

Thanks,

Eran

 








regular expression replacement

2003-11-27 Thread Kaufman Eran (StarHome)








Hi,

 

I would
like to know how can I replace the value c:\qqq\www\ to c:/qqq/www/.

I tried
several ways, but didn't manage to.

 

Thanks,

Eran