Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Remote execution & FTP
Hai
=0D
I need to Call a PERL script on OTHER  SERVER from MY SERVER  and get
the file generated there back to MY SERVER
Can you please suggest how can i do that?

Thanks in advance
Arjun




Confidentiality Notice=0D

The information contained in this electronic message and any attachments to=
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or=
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or=
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Report this thread to moderator Post Follow-up to this message
Old Post
Arjun Mallik
09-27-04 08:57 PM


RE: Remote execution & FTP
arjun.mallik@wipro.com wrote:
> I need to Call a PERL script on OTHER  SERVER from MY SERVER  and get
> the file generated there back to MY SERVER
> Can you please suggest how can i do that?

Something like Net::SSH or Net::Rexec should do the trick.

Report this thread to moderator Post Follow-up to this message
Old Post
Bob Showalter
09-27-04 08:57 PM


RE: Remote execution & FTP
Hai
Thanks for the suggestion. But my code is returning below error. can
you please help me out.

CODE:
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
#!/usr/bin/perl
use Net::Rexec 'rexec';
$rc, @output) =3D rexec(nakula, hello.pl, omc);
print "result of the command is $rc \n";
print "@output\n";
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D


ERROR:
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
neptune:/m/home/omc (110) omc% perl remote.pl
Can't locate Net/Rexec.pm in @INC (@INC contains:
/opt/XXXnms/lib/perllib /opt/XXXnms/lib/perl5/5.6.1/PA-RISC2.0
/opt/XXXnms/lib/perl5/5.6.1
/opt/XXXnms/lib/perl5/site_perl/5.6.1/PA-RISC2.0
/opt/XXXnms/lib/perl5/site_perl/5.6.1 /opt/XXXnms/lib/perl5/site_perl
/opt/XXXoss/pf3party/perlna/src/wperli/XXXnms/lib/perl5/5.6.1
/opt/XXXoss/pf3party/perlna/src/wperli/XXXnms/lib/perl5/5.6.1/PA-RISC2.0
.) at remote.pl line 2.
BEGIN failed--compilation aborted at remote.pl line 2.
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Arjun


-----Original Message-----
From: Bob Showalter [mailto:Bob_Showalter@taylorwhite.com]=0D
Sent: Monday, September 27, 2004 8:15 PM
To: Mallik Arjun (WT01 - TELECOM SOLUTIONS); beginners@perl.org
Subject: RE: Remote execution & FTP


arjun.mallik@wipro.com wrote:
> I need to Call a PERL script on OTHER  SERVER from MY SERVER  and get=0D
> the file generated there back to MY SERVER Can you please suggest how=0D
> can i do that?

Something like Net::SSH or Net::Rexec should do the trick.



Confidentiality Notice=0D

The information contained in this electronic message and any attachments to=
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or=
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or=
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Report this thread to moderator Post Follow-up to this message
Old Post
Arjun Mallik
09-27-04 08:57 PM


RE: Remote execution & FTP
arjun.mallik@wipro.com wrote:
> Hai

Hi. Top-post please.

>  Thanks for the suggestion. But my code is returning below error. can
> you please help me out.

...

> Can't locate Net/Rexec.pm in @INC (@INC contains:

You need to install the Net::Rexec module. Read

perldoc perlmodinstall

Report this thread to moderator Post Follow-up to this message
Old Post
Bob Showalter
09-27-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:32 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.