in reply to Re^2: How to tail file on remote host
in thread How to tail file on remote host

The only requirement is that, to handle password authentication, it needs Expect.

If you use public/private key pairs for authentication exclusively (that's what you should be doing anyway), no additional modules are required.

Just (recursively) copy the contents of the lib directory to the right place in your server and you are done with the installation!

Replies are listed 'Best First'.
Re^4: How to tail file on remote host
by wmarquette (Initiate) on Oct 01, 2008 at 20:30 UTC
    Thanks Salva,
    
    
    Yes I would do that except in this case I have not way to copy into the server since I dont have permission to copy anything into the perl5lib directory.   I was doing to put it in my custom lib path somewhere and try this.  I know they have expect stuff installed, but when I did a use on the SMTP package it could not find it.
    
    -Wayne
      Copy the modules you want to use into a directory under your home (for instance: /home/wayne/lib/perl5) and then, add at the beginning of your scripts...
      use lib => '/home/wayne/lib/perl5/';
      Actually, most modules can be installed in a custom place just using the Makefile.PL PREFIX option.

      For instance, on my system:

      $ perl Makefile.PL PREFIX=~/ $ make $ make test $ make install
      will install the module under /home/salva/share/perl/5.10.0/