User Tools

Site Tools


auto_unrar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
auto_unrar [2009/08/01 18:07]
jt created
— (current)
Line 1: Line 1:
-<​code>​ 
  
-#!/bin/bash 
-IMAGES=$(/​bin/​pwd) 
- 
-for i in $(find . -maxdepth 1 -type d -mtime -1); do 
- 
-        if [ ! -e $i/.rarlock ] || [ ! -e $/.rarcc ]; then 
- 
-        cd $IMAGES/$i; 
-        touch .rarlock; 
-        rar e *.rar; 
- 
-        fi 
-                if [ $? == "​1"​ ]; then 
-                        rm .rarlock && touch .rarnc; 
-                        echo `date` "$i failed extraction"​ >> ~/.rarlog 
-                else 
-                        rm .rarlock && touch .rarcc; 
-                fi 
- 
- 
-done 
- 
-</​code>​ 
auto_unrar.1249150024.txt.gz ยท Last modified: 2020/08/10 02:28 (external edit)