Re: Enter an anderen Prozess schicken...
Thomas Kratz <belgarda@web.de> 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
Reply to: