Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 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

Replies are listed 'Best First'.
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 "" 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 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987628]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-05-27 02:36 GMT
Find Nodes?
    Voting Booth?