Professional Web Applications Themes

Remote execution & FTP - PERL Beginners

Hai 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 The information contained in this electronic message and any attachments tothis message are intended for the exclusive use of the addressee(s) and may contain confidential orprivileged information. If you are not the intended recipient, please notify the sender at Wipro com immediately and destroy all copies of this message and any attachments....

  1. #1

    Default Remote execution & FTP


    Hai

    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

    The information contained in this electronic message and any attachments tothis message are intended
    for the exclusive use of the addressee(s) and may contain confidential orprivileged information. If
    you are not the intended recipient, please notify the sender at Wipro com immediately
    and destroy all copies of this message and any attachments.
    Arjun Guest

  2. #2

    Default RE: Remote execution & FTP

    com wrote: 

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

  3. #3

    Default RE: Remote execution & FTP


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

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


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

    Arjun


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


    com wrote: 

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



    Confidentiality Notice

    The information contained in this electronic message and any attachments tothis message are intended
    for the exclusive use of the addressee(s) and may contain confidential orprivileged information. If
    you are not the intended recipient, please notify the sender at Wipro com immediately
    and destroy all copies of this message and any attachments.
    Arjun Guest

  4. #4

    Default RE: Remote execution & FTP

    com wrote: 

    Hi. Top-post please.
     

    ....
     

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

    perldoc perlmodinstall
    Bob Guest

Similar Threads

  1. Remote.pm (File::Remote) error handling question
    By terminlman@yahoo.com in forum PERL Modules
    Replies: 3
    Last Post: January 31st, 07:26 PM
  2. Remote Execution Through FTP
    By Anoop in forum Linux / Unix Administration
    Replies: 7
    Last Post: January 22nd, 10:14 AM
  3. Replies: 19
    Last Post: July 14th, 07:15 PM
  4. Remote script execution
    By Aman Thind in forum PERL Beginners
    Replies: 6
    Last Post: February 6th, 09:23 AM
  5. Setting folder permissions on remote machine / remote domain
    By Tim Chandler in forum ASP.NET Security
    Replies: 0
    Last Post: October 7th, 04:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139