Editing
Octave
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== retreive.sh == <code> <code>#!/bin/bash #otlf scanid 6340-6344, photoid 5820-5824, lprid 2911-2912 if [ -z $1 ]; then ip=192.168.1.9; else ip=$1; fi if [ -z $2 ]; then echo "retrieve.sh <ip> <start_id> <end_id>"; exit; else start=$2; fi if [ -z $3 ]; then echo "retrieve.sh <ip> <start_id> <end_id>"; exit; else end=$3; fi cnt=$end-$start #mkdir cbp for i in $(eval echo {$start..$end}); do wget -O $i.tiff http://$ip/requestImage/?scanId=$i wget -O $i.modified.tiff "http://$ip/requestImage/?scanId=$i&format=modified" str="`wget -qO- http://$ip/getScanInfoByScanId/?scanId=$i`" str2=${str}_${i} #tiffcp $i.modified-orig.tiff $i.modified.tiff #tiffcp $i.orig.tiff $i.tiff #cp $i.modified.tiff $str2.modified.tiff #cp $i.tiff $str2.tiff #cp $str2.modified.tiff cbp #cp $str2.tiff cbp done exit #for i in {8165..8244} #for i in {8245..8412} for i in {1911..1918} do wget -O $i.jpg http://192.168.1.9/requestPhoto/?photoId=$i str="`wget -qO - http://$ip/getScanInfoByScanId/?photoId=$i`" #str2=${str}_${i} #cp $i.jpg $str2.jpg #cp $str2.jpg cbp done <\code>
Summary:
Please note that all contributions to SoftwareGuy may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SoftwareGuy:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information