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: [email protected] -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Rich Shepard Sent: Thursday, November 15, 2018 10:07 AM To: Portland Linux/Unix Group <[email protected]> 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 [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
