This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cron 00.27


 > 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]