Avec mt, tu peux savoir si une cartouche se trouve dans le lecteur ou non, en testant tout simplement le code retour de la commande:
mt -f $TAPE rewind
Si le code retour vaut 0 c'est que la cartouche insérée a pu être rembobinée,
sinon c'est qu'il y en a pas ou qu'il y a un pb avec la cartouche elle-même.
Pour labeliser une cartouche, un coup d'oeil dans le man de dump stipule:
-L label
The user-supplied text string label is placed into the dump
header, where tools like restore(8) and file(1) can access it.
Note that this label is limited to be at most LBLSIZE (currently
16) characters, which must include the terminating `0円'.
# débandade
Posté par Dabowl_94 . En réponse au message Utilisation avancée d'un lecteur de bandes..... Évalué à 2.
Salut,
Avec mt, tu peux savoir si une cartouche se trouve dans le lecteur ou non, en testant tout simplement le code retour de la commande:
mt -f $TAPE rewind
Si le code retour vaut 0 c'est que la cartouche insérée a pu être rembobinée,
sinon c'est qu'il y en a pas ou qu'il y a un pb avec la cartouche elle-même.
Pour labeliser une cartouche, un coup d'oeil dans le man de dump stipule:
-L label
The user-supplied text string label is placed into the dump
header, where tools like restore(8) and file(1) can access it.
Note that this label is limited to be at most LBLSIZE (currently
16) characters, which must include the terminating `0円'.
dabowl_75