Updated README and translation from IT

This commit is contained in:
Massimo Scagliola 2023-07-04 23:04:43 +02:00
parent dcdf262caf
commit 6c8af9bd5f
2 changed files with 12 additions and 5 deletions

View File

@ -26,12 +26,19 @@ It has been tested with both:
- IBM TS4500 Tape Library
- Quantum i6000 Tape Library
## Dependencies
The only package required is [mtx](https://linux.die.net/man/1/mtx).
## Fun facts
Up to today, 4th of July, 2023, none of the major brands of Tape Libraries can provide a tool capable of this.
As far as I know, up to today, 4th of July, 2023, none of the major brands of Tape Libraries can provide a tool capable of this.
I wrote the script in a day, then tested and fixed it.
Total time spent: 3 days.
Total money earned: none, so I'll just put it here.
Please note that this script **does not mean to replace** any of the eventual official tools that may exist but sadly I wasn't aware of.
P.S. I am aware the script is poorly written, but I don't have a test environment anymore to test it properly. I'll do it in my spare time.

View File

@ -73,7 +73,7 @@ alive() {
return 0
fi
done
log "Fine ALIVE [$$]"
log "End ALIVE [$$]"
return 0
}
@ -158,12 +158,12 @@ while [ $COUNT -le $(cat ${SLOTS_FULL} | wc -l) ]; do
mtx -f "${LIB_SG}" load "${SLOT}" "${DRIVE}"
echo "${BARCODE};drive${DRIVE};WIP" >> "${PROCESSED_BARCODES}" # Barcode WIP
echo ${SLOT} >> "${PROCESSED_SLOTS}"
log "Lancio ALIVE con parametri: ${LIB_SG} - ${SLOT} - ${DRIVE} - ${BARCODE}"
log "Launching ALIVE with parameters: ${LIB_SG} - ${SLOT} - ${DRIVE} - ${BARCODE}"
alive "${LIB_SG}" "${SLOT}" "${DRIVE}" "${BARCODE}" &
RUNNING=$(ls -1q ${TMP}/.drive*.lock | wc -l)
log "MAIN - RUNNING processes: $RUNNING"
if [[ "${RUNNING}" -ge "${PARALLELISM}" ]]; then
log "MAIN (if) - Massimo Parallelismo. Aspetto ${WAIT} secondi."
log "MAIN (if) - Maximum parallelism. Waiting ${WAIT} seconds…"
sleep "${WAIT}"
else
((COUNT++))
@ -171,7 +171,7 @@ while [ $COUNT -le $(cat ${SLOTS_FULL} | wc -l) ]; do
sleep 120
fi
else
log "MAIN - Maximum parallelism. Waiting ${WAIT} seconds."
log "MAIN - Maximum parallelism. Waiting ${WAIT} seconds"
sleep "${WAIT}"
fi
done