Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
repo:dcdate [2012/07/12 12:26]
giancarlo
repo:dcdate [2012/07/12 12:29]
giancarlo
Line 11: Line 11:
  if [ $lline -gt 0 ]  if [ $lline -gt 0 ]
  then  then
- pid="${line%%,*}" +   pid="${line%%,*}" 
- datepages="${line#*,}" +   datepages="${line#*,}" 
- date="${datepages%%,*}" +   date="${datepages%%,*}" 
- pages="${datepages#*,}" +   pages="${datepages#*,}" 
-      echo "$pid $date $pages" +          echo "$pid $date $pages" 
-     ./modificaDSbookepage.sh $pid $date $pages $1 +          ./modificaDSbookepage.sh $pid $date $pages $1 
-   fi+        fi
 done < "elenco.txt" done < "elenco.txt"
 exit exit
Line 43: Line 43:
 if [[ "$risultato" == *Valid* ]] if [[ "$risultato" == *Valid* ]]
 then  then 
- echo "Is Valid ..." +   echo "Is Valid ..."
    ./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http YES    ./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http YES
 else  else 
- echo "ERROR XML: $risultato" +   echo "ERROR XML: $risultato" 
- exit+   exit
 fi fi
 for (( npage=1; npage<=$PAGES; npage++ )) for (( npage=1; npage<=$PAGES; npage++ ))
 do do
- snpage=$(printf "%04d" $npage) +   snpage=$(printf "%04d" $npage) 
- pagePID="$PID""-""$snpage"+   pagePID="$PID""-""$snpage"
    echo $pagePID    echo $pagePID
- ./modificaDCdate.php $pagePID $NEWDATE +   ./modificaDCdate.php $pagePID $NEWDATE 
- risultato=$(./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http)+   risultato=$(./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http)
    if [[ "$risultato" == *Valid* ]]    if [[ "$risultato" == *Valid* ]]
- then  +   then  
- echo "Is Valid ..." +      echo "Is Valid ..."
       ./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http YES       ./fedora-modify.sh fc1.to.cnr.it:8080 fedoraAdmin $4 bmodify.xml ../logs/log http YES
- else  +   else  
- echo "ERROR XML: $risultato" +      echo "ERROR XML: $risultato" 
-   exit+      exit
    fi    fi
 done done
 
 
repo/dcdate.txt · Last modified: 2012/07/12 15:11 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki