source: other-projects/is-sheet-music-encore/trunk/COMPX520-DOWNLOADER-PNG-10PAGES.sh@ 33066

Last change on this file since 33066 was 33066, checked in by cpb16, 5 years ago

Corrected makefile and 10page downloader

  • Property svn:executable set to *
File size: 419 bytes
Line 
1#!/bin/bash
2if [ $# != 1 ] ; then
3 echo "Usage: ./COMPX520-RUN-PNG.sh <filename>" 1>&2
4 exit 1
5fi
6
7file_name=$1
8page_num=0
9count=0
10
11for id in `cat $file_name` ; do
12 for page_num in {1..10}
13 do
14 echo "id: $id page_num: $page_num"
15 ./COMPX520-RUN-PNG.sh $id $page_num
16 page_num=$((page_num+1))
17 count=$((count+1))
18 echo "PNG's downloaded:" $count
19
20 done
21 echo ""
22 sleep 2
23done
Note: See TracBrowser for help on using the repository browser.