X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sat, 19 Jul 2008 18:49:04 -0400
From: Ken Jackson <cygwin@jackson.io>
Subject: Re: cron 00.27
In-reply-to: <loom.20080719T222829-320@post.gmane.org>
To: cygwin@cygwin.com
Message-id: <18562.28512.885523.640574@intel.local>
MIME-version: 1.0
X-Mailer: emacs 22.1.1 (via feedmail 8 I);	VM 7.19 under Emacs 22.1.1
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
References: <loom.20080719T222829-320@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

 > I'm trying to use cron, I created a file called backup_cygwin
 > 
 > 
 > 59 18 * * 6 /bin/backup_cygwin.sh 
 > 00 27 20 7 * /bin/prova.sh
 > 
 > 
 > and I put it in /var/cron/tabs/

Rather than putting putting it in a directory, it's better to let
the crontab command do it.  Put those two lines in crontab.txt:

crontab crontab.txt

 > then I create prova.sh as follow
 > 
 > 
 > SHELL=/bin/sh                                       
 >                                                     
 > touch /home/Proprietario/prova_cron                 
 > echo 'cron funziona' > /home/Proprietario/prova_cron

Make sure the first line is
#!/bin/sh

And make them executable:
chmod +x prova.sh

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

