This is the mail archive of the cygwin-apps@cygwin.com 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]

ZIP 2.3/Unzip UnZip 5.50 and Cron


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


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