X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sat, 19 Jul 2008 18:49:04 -0400 From: Ken Jackson Subject: Re: cron 00.27 In-reply-to: To: cygwin AT cygwin DOT 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/