[dsc] new release 200801301758

Alexander Gall gall at switch.ch
Thu Feb 7 13:29:13 UTC 2008

Hello Duane

I have upgraded to this version yesterday. I think there is a flaw in
upload-rsync.sh that causes it to stop transferring files to the
presenter when a new day starts.

The upload-prep.pl script puts the XML files into a directory named
after the current date. upload-rsync.sh enters this directory and then

exec > $PROG.out
exec 2>&1

This will cause the file upload-rsync.sh.out to be created *within*
this directory.  Because of this, the last command of the script

cd ..; rmdir $YYYYMMDD 2>/dev/null

which is supposed to remove the directory once all XML files have been
transferred, will always fail (because the "out" file is always

When a new day starts, upload-rsync.sh will keep entering the old
directory and the new XML files will never be transferred.

I have attached a possible fix.  Maybe the script should loop through
all such directories to be on the safe side?


--- /tmp/upload-rsync.sh.orig   Thu Feb  7 14:22:25 2008
+++ /tmp/upload-rsync.sh        Thu Feb  7 14:23:26 2008
@@ -29,11 +29,11 @@
 YYYYMMDD=`ls | grep '^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$' | head -1`
 test -n "$YYYYMMDD" || exit 0
 exec > $PROG.out
 exec 2>&1
 if test -f $HOME/.ssh/dsc_uploader_id ; then
        RSYNC_RSH="ssh -i $HOME/.ssh/dsc_uploader_id"
        export RSYNC_RSH

More information about the dsc mailing list