diff options
Diffstat (limited to 'Tools/schnitt/mv2')
-rwxr-xr-x | Tools/schnitt/mv2 | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Tools/schnitt/mv2 b/Tools/schnitt/mv2 deleted file mode 100755 index c27a9ff..0000000 --- a/Tools/schnitt/mv2 +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# Move files from DVB-Computer(s) to localmachine into $LOCALDIR -# - -LOCALDIR=/x1/video - -if [ ! "$UID" = 0 ]; then - if [ -d "$1" ]; then - if [ -f "$1/index.vdr" ]; then - cd $LOCALDIR - recdir=`echo "$1" | cut -d / -f4-` - mkdir -p "$recdir" - cd "$recdir" - dvbcomp=`echo "$1" | cut -d / -f2` - (echo cd "/video/video0/$recdir"; echo mget \*)| ftp -i $dvbcomp - cd $LOCALDIR - ssh $dvbcomp ls -Ls /video/video0/$recdir > /tmp/dvb - ls -Ls $recdir > /tmp/local - diff -u /tmp/dvb /tmp/local &> /dev/null && rm -rfv /$dvbcomp/video?/$recdir - rm /tmp/dvb - rm /tmp/local - rmdir --ignore-fail-on-non-empty `find /$dvbcomp/video?/ -type d -mindepth 1 | cut -d \/ -f-4 | grep -v temp | sort | uniq` - fi - fi -else - echo Not as root -fi - -/usr/local/bin/my/process_summary.pl |