[PLUG] rsync in a cron job

Smith, Cathy Cathy.Smith at pnnl.gov
Thu Nov 15 18:12:59 UTC 2018


Take a look at the man page from cron.  When a job executes from cron, you don't even get your default path.  You have to set the variables, including your path in your script.  Or you have to specify the full path in the command syntax that is executed.

-- 
Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the 
U.S. Department of Energy

Phone: 509.375.2687
Fax:       509.375.4399
Email: cathy.smith at pnnl.gov

-----Original Message-----
From: plug-bounces at pdxlinux.org <plug-bounces at pdxlinux.org> On Behalf Of Rich Shepard
Sent: Thursday, November 15, 2018 10:07 AM
To: Portland Linux/Unix Group <plug at pdxlinux.org>
Subject: Re: [PLUG] rsync in a cron job

On Thu, 15 Nov 2018, Larry Brigman wrote:

> Note that none of your shell variables from your login will be set 
> when you run from cron.

Larry,

   Would this affect synchronizing files in ~/ on both hosts?

Thanks,

Rich
_______________________________________________
PLUG mailing list
PLUG at pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug



More information about the PLUG mailing list