The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-07-2007
shash shash is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 21
Problem with scheduling a shell script on cygwin using cron

Hi,

Before I start, I would like to inform that, I went through all FAQs and other threads before posting here.

I 'm trying to schedule a shell script on cygwin using cron. No matter what I do I don't seem to get the cron job executing my bash script.

My script is temp.sh

echo `date` > /home/test/temp.log

crontab -e is having the following details

* * * * * sh /home/test/temp.sh > /home/test/temp.sh.err 2>&1

I did use the paths in the script itself and I also used the windows path where the cygwin installed(/cygdrive/d/cygwin/).

What am I doing wrong? Please help.

Thanks
Shash