Thomas Kratz <[EMAIL PROTECTED]> writes:

> Hi,
> 
> ich m�chte mit tar -cvMf ein Backup auf einen Dat-Wechsler sichern. Das ganze 
> soll per Skript laufen. Mit mtx das Band zu wechseln ist ja kein Problem, 
> aber wie schicke ich von dem Skript das den Wechsler bedient ein Return an 
> den tar-Prozess?

Du kannst statt des Wartens auf einen Return ein Skript laufen lassen:

 [ info tar, Node: Using Multiple Tapes ]
    If you want more elaborate behavior than this, give `tar' the
 `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F
 SCRIPT-NAME') option.  The file SCRIPT-NAME is expected to be a program
 (or shell script) to be run instead of the normal prompting procedure.
 If the program fails, `tar' exits; otherwise, `tar' begins writing the
 next volume.  The behavior of the `n' response to the normal
 tape-change prompt is not available if you use
 `--info-script=SCRIPT-NAME' (`--new-volume-script=SCRIPT-NAME', `-F
 SCRIPT-NAME').

Das Skript kann z.B. auf ein Signal warten oder die Existenz eines
Files pr�fen. Deiner Phantasie sind da keine Grenzen gesetzt.

HTH,

 Heike


-- 
H�ufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

Antwort per Email an