From owner-freebsd-newbies Tue May 9 11:46:10 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from ns1.gatefive.com (pacman.gatefive.com [206.169.190.5]) by hub.freebsd.org (Postfix) with ESMTP id 76E5D37B58D for ; Tue, 9 May 2000 11:46:06 -0700 (PDT) (envelope-from snowick@learn2.com) Received: from [206.169.190.21] (biznatch.gatefive.com [206.169.190.21]) by ns1.gatefive.com (8.9.3/8.9.3) with ESMTP id SAA31174 for ; Tue, 9 May 2000 18:47:53 GMT (envelope-from snowick@learn2.com) From: snowick@learn2.com User-Agent: Microsoft Outlook Express Macintosh Edition - 5.0 (1513) Date: Tue, 09 May 2000 11:36:56 -0700 Subject: cron woes - please help! To: Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi everyone- I've read everything I can on setting cron jobs and tried a few myself but I'm getting a lot of errors and really need a few of these crons to work. I don't see anything in the Handbook about cron paths & variables which seem to be part of the problem. Running FreeBSD3.4, I have an id whose cron job has it run an rsync of files on another server. When I run the command as a command line, it works beautifully (I have the ssh-password thing worked out, that's not the problem). The error I keep getting seems to be regarding the id's paths - I get rsync: command not found errors (it's in /usr/local/bin) but when I look at the crontab error email there are a bunch of X-Cron-Env settings that don't match the ids ENV setting (see below - especially PATH=) Does anyone know how I modify the X-Cron-Env? Or even what/why it is? I changed the command to /usr/local/bin/rsync but then I get the same error for ssh (also in /usr/local/bin). How do I add /usr/local/bin to cron's paths? + + + + + + + + + + + + + + + + + + + + + + + Date: Tue, 9 May 2000 11:15:00 -0700 (PDT) Message-Id: <200005091815.LAA18763@www2.serverB.com> From: root (Cron Daemon) To: learn2 Subject: Cron rsync -av -e ssh --exclude 'cgi-bin' serverA.com:/hom e/learn2/htdocs /usr/local/share/apache >> ~/sync.log 2>&1 X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: rsync: not found Any ideas? Thanks- rrrrrobot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message