This is my first post, and I am about as green as they come with regards to UNIX, so any help or direction would be appreciated. I've searched this forum, and spent a few hours on Google, but I haven't been able to find anything that
1) applies to my problem
2) I can understand
In a nutshell I'm trying to use wget on a Windows Vista box to download numerical weather model outputs. I was scared off trying to build wget in Windows by the README warning that wget 1.12 is severly broken in Windows, so I have installed cygwin as a workaround.
I have tested every part of this scrip individually, but either I'm not getting my syntax right (likely) or this isn't possible (unlikely I hope).
The .bat file will be run as a sched. task, and clear out the previous model runs files from the directory before downloadin the new ones.
The script is below - how do I pass the change directory command and the commands for wget through a .bat script to run in cygwin?
I have seen references to cygpath, and I tried many different combinations, but I'm in the dark.
These are the commands that I want to pass to cygwin from the .bat file:
wget -nd -nc -i GEM15_files.txt -P H:\GRIB\GRIBtest -B http://dd.weatheroffice.ec.gc.ca/mod...tion/grib1/00/
Thanks in advance,
echo y | del H:\GRIB\GRIBtest
start c:\cygwin\cygwin.bat -|wget -nd -nc -i GEM15_files.txt -P H:\GRIB\GRIBtest -B http://dd.weatheroffice.ec.gc.ca/mod...tion/grib1/00/