User`s guide
Chapter 4:Starting Up ScanShop
ScanShop User’s Guide - 31
bits 1
length 10in
wid 8in
ofile tmp.ras
xres 200
yres 200
To enable automatic document feeding, and scan ten pages to files named
page01, page02, …, page10:
% sshop_cli -ifs=letter.ss -feed=letter -number=1:10 \
-ofile=page%02d
Many users find it handy to have ScanShop come up running with the same
settings they had in their previous session. You can define ScanShop’s command
line to read in the settings it created as it exited in each previous run (C shell
example shown below.) Each time you quit ScanShop it automatically writes out
a .scanshoprc file in the user’s home directory.
% scanshop -ifs=~/.scanshoprc
Another use of the .scanshoprc file is to record all of the settings in effect from
an interactive GUI session of ScanShop for subsequent use in an invocation of
sshop_cli. You can get a complete view of all the settings, edit the settings, and
then save them out under a different name for use with the sshop_cli.
% sshop_cli -ofs=claim_form1.ss
% vi claim_form1.ss
% sshop_cli -ifs=claim_form1.ss
Return Status
When using the CLI, ScanShop will return the number of pages successfully
scanned as its exit status. This is accessible to Bourne and C shells, C programs,
and any other programs that call ScanShop to do batch scanning. Here’s how to
access the return values:
Bourne shell: $?
C shell: $status
C programs: status = system("scanshop…");