I am trying to run a script via crontab in cygwin. I have set up the cygwin to run the cronjob. It is working for copying files from one directory to other etc. Here is what I am trying to do.
I have a directory full of .tar files.
I am trying to untar them all at a time. To do that I have written a script called mytar.sc that looks like:
for a in *.tar; do tar -xvf $a; done
If I try to run this script directly from the command line as:
it works perfectly by untaring all the .tar files. But I have to add that in my cronjob. So I have edited my crontab with this line as:
* * * * * * /cygdrive/c/bin/CYGWIN/home/urmiss/mytar.sc
and it is doing nothing. Just creating a dead.letter that has the info as:
dead.letter: not found
Am I missing in any Env variable?
Any help will be appreciated.
Thanks in advance.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)