From owner-freebsd-questions Thu Jul 5 12:27:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gandalf.vi.bravenet.com (gandalf.bravenet.com [139.142.105.50]) by hub.freebsd.org (Postfix) with SMTP id A990D37B407 for ; Thu, 5 Jul 2001 12:27:15 -0700 (PDT) (envelope-from graham@bravenet.com) Received: (qmail 62690 invoked from network); 5 Jul 2001 19:30:37 -0000 Received: from unknown (HELO grahamwork) (192.168.30.9) by 0 with SMTP; 5 Jul 2001 19:30:37 -0000 From: "Graham White" To: "FreeBSD-questions" Subject: Cron Date: Thu, 5 Jul 2001 12:30:56 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for your replies guys but still no luck: Here is the crontab entry: SHELL=/bin/bash 30 10 * * * /usr/local/adminscpts/update And the Script itself: #!/bin/bash #This script will automatically update a users home directory. PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/mail:/usr/local/adminscpts /usr/bin/su - user -c '/usr/bin/cvs update -d' | /usr/bin/mail graham@bravenet.com This was all set up as root. Thanks for helping out a newbie guys. Original message: Greetings, I am trying to set up a script file to be automatically run by cron every morning. The script works when I manually execute it. The path and time variables for the script file are correct but when the time comes for it to run nothing happens. If I set up the crontab file with the command(that I have in the script file) itself rather than the path to the script file it works! I've tried different permission settings but no luck. Any suggestions? GW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message