rsync script  is not working via cron job

Posted on 2006-05-22
Last Modified: 2008-03-10
I'm trying to run rsync script that works fine manually or by using at command  but when I try to execute it via cron job on
Solaris system, getting following error

The error code for the rsync = 12
Failed to rsync, rsync error code 12
Question by:mmalvi
    LVL 48

    Accepted Solution

    Are you relying on paths in the script?  Remember that cronjobs run under a minimal environment.
    LVL 27

    Assisted Solution

    12   Error in rsync protocol data stream
    Which rsync transport are you using? Is it ssh?
    If yes, do you have full path to 'ssh' command in rsync command? Also do you have access to user's private key file if you are using RSA keyfile authentication.

    Also you may try to add double -v flag to rsync command and you will see what is the problem in cron the output (probably in email) .
    LVL 61

    Expert Comment

    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
    I will leave the following recommendation for this question in the Cleanup topic area:

    split between Tintin http:#16739331 and Nopius http:#16739770

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    EE Cleanup Volunteer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    sed -- search an replace multiple pattern 11 44
    AIX Server 10 65
    tar syntax help 5 128
    Unix / Linux grid computing 5 95
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now