Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: CRON job failing but manual run works

by pvaldes (Chaplain)
on Aug 15, 2012 at 20:14 UTC ( #987628=note: print w/ replies, xml ) Need Help??


in reply to CRON job failing but manual run works

mkdir Net and copy or link OpenSSH.pm to the dir /usr/share/perl/5.XX/Net and try again. It's a bad solution but could solve the problem temporally.

Nett::OpenSHH module. Unfortunately it was not available via "yum update"...

ok I see....

Your problem is that this module is misspelled. The ubuntu packages that you need are probably:

apt-get install libnet-openssh-compat-perl libnet-openssh-perl


Comment on Re: CRON job failing but manual run works
Download Code
Re^2: CRON job failing but manual run works
by Dranzaz (Sexton) on Aug 16, 2012 at 13:32 UTC
    The mispelling was a typo when I was making the post not when I was using "yum".

    Proof: Just did this the following:

    # yum install perl-Net-OpenSSH
    Setting up Install Process
    No package perl-Net-OpenSSH available.
    Error: Nothing to do
    # yum install perl-net-openssh
    Setting up Install Process
    No package perl-net-openssh available.
    Error: Nothing to do

    Also, this is not an Ubuntu install. It is a Fedora Core15. Please see the "uname -a" output above.

    I did however follow your suggestion on linking/copying the .pm file. I also had to create the OpenSSH directory as ther is a dependant "Constants.pm" file that is also needed. I have updated the crontab and am awaiting the results. I did not get an immediate failure message and while watching the "top" output I am seeing both "perl" and "ssh" populating the list. This is a good sign from past experience with this script. I will update as I have information.

      UPDATE: The issue has been resolved by copying the OpenSSH.pm file and its associated folder from the suers perl directory into the system perl installation. Thanks to everyone for their assistance. As always the monks here rule.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987628]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-07-25 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls