delorie.com/archives/browse.cgi | search |
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 <cygwin AT jackson DOT io> |
Subject: | Re: cron 00.27 |
In-reply-to: | <loom.20080719T222829-320@post.gmane.org> |
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 |
References: | <loom DOT 20080719T222829-320 AT post DOT gmane DOT org> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |