From 6c8af9bd5f744356b51eae3b49dd9eabf4efbbf6 Mon Sep 17 00:00:00 2001 From: Massimo Scagliola Date: Tue, 4 Jul 2023 23:04:43 +0200 Subject: [PATCH] Updated README and translation from IT --- README.md | 9 ++++++++- optimizer.sh | 8 ++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9002e82..4004713 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/optimizer.sh b/optimizer.sh index ed09bd7..fa67d20 100755 --- a/optimizer.sh +++ b/optimizer.sh @@ -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