source: other-projects/is-sheet-music-encore/trunk/COMPX520-RUN-PNG.sh~@ 33010

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

Updated and Renamed PNG retrieving code, ZIP file downlading is also now possible. All code runs as expected

  • Property svn:executable set to *
File size: 333 bytes
Line 
1#!/bin/bash
2
3if [ $# != 2 ] ; then
4 echo "Usage: ./COMPX520-RUN-PNG.sh doc_id page" 1>&2
5 exit 1
6fi
7
8doc_id=$1
9page_num=$2
10
11output_file="download-images/page-$page_num/$doc_id-$page_num.png"
12echo "Retrieving doc-id-page: $doc_id-$page_num -> $output_file"
13echo ""
14
15./dapiclient2-extended.pl "$doc_id/$page_num" > "$output_file"
16
17
Note: See TracBrowser for help on using the repository browser.