ZIP 2.3/Unzip UnZip 5.50 and Cron
david.martinez@managestar.com
david.martinez@managestar.com
Wed Aug 25 17:28:00 GMT 2004
Mkdir seems to be losing the permissions when creating a directory under
cron (even though NTSec is set on the service). Zip/Unzip do not find
files or directories created on the cron script (the rest of the
programs seem to find them okay though).
cron_diagnose.sh 1.5 returns no errors.
Here is a sample cron script that reproduces my problem:
----------bustcron.sh -------------------------
echo "Cygwin: $CYGWIN"
mkdir -p $TMP/nested/source
mkdir -p $TMP/nested/dest
echo "Creating temp file.."
echo "Something" > $TMP/nested/source/dude.txt
echo "Temp file contents:"
cat $TMP/nested/source/dude.txt
echo "Trying to Zip"
zip $TMP/nested/azip.zip $TMP/nested/source/dude.txt
echo "Trying to unzip"
unzip -d $TMP/nested/dest $TMP/nested/azip.zip
---------------------------------------------
This runs fine under my user directory. But under cron, it breaks as
follows:
-------------------------
Cygwin: ntsec
Creating temp file..
Temp file contents:
Something
Trying to Zip
zip warning: name not matched:
/cygdrive/c/WINNT/TEMP/nested/source/dude.txt
zip error: Nothing to do! (/cygdrive/c/WINNT/TEMP/nested/azip.zip)
Trying to unzip
checkdir: cannot create extraction directory:
/cygdrive/c/WINNT/TEMP/nested/dest
---------------------
Note that ntsec is set on the cygwin variable.
My "Real" production script is trying to unzip something created on a
linux box (no ZIP stage).
Any suggestions?
Thanks!
- David Martinez
More information about the Cygwin-apps
mailing list