DominikHerz
IS-IT--Management
We need to scan a whole library (81 slots) with the scanner-command. Since this takes a really very long time on 8mm-tapes we want to write a script that automizes all the load- and unload-processes and scans in the actual tape between. The real problem is that "scanner" asks for the next tape or (q)uit after reading in one tape. How can I automize this manual keyboard entry "<q> <enter>" in a commandline script on windows (2k)? Following up i will show you how far we are yet:
1. Batchfile "jb_scan.bat"
for /l %%C in (1,1,81) do scan.bat %%C
2. Batchfile "scan.bat"
nsrjb -l -n -f \\.\Tape0 -S %1
scanner -i -q \\.\Tape0 < q-parse.dat
nsrjb -u -f \\.\Tape0
3. Parsing file "q-parse.dat"
# The only entry is the "q"
q
Yesterday we let this script run but the "q" was not used after scanning. I suppose it was something with the name of the parsing-file (the "-" was not correctly interpreted). We renamed the file to "q_parse.dat" and now the next process is running. If this should fail too, please, does anyone have an idea about that?
Greetz, Dominik
1. Batchfile "jb_scan.bat"
for /l %%C in (1,1,81) do scan.bat %%C
2. Batchfile "scan.bat"
nsrjb -l -n -f \\.\Tape0 -S %1
scanner -i -q \\.\Tape0 < q-parse.dat
nsrjb -u -f \\.\Tape0
3. Parsing file "q-parse.dat"
# The only entry is the "q"
q
Yesterday we let this script run but the "q" was not used after scanning. I suppose it was something with the name of the parsing-file (the "-" was not correctly interpreted). We renamed the file to "q_parse.dat" and now the next process is running. If this should fail too, please, does anyone have an idea about that?
Greetz, Dominik