Re: Enter an anderen Prozess schicken...
Thomas Kratz schrieb am Sonntag, 12. Januar 2003 um 12:33:04 +0100:
> 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?
Hi!
Gar nicht nötig:
aus `info tar "Using Multiple Volumes"`:
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').
--
Heute ist nicht alle Tage, ich komm' wieder, keine Frage!!!
Joerg
If the government doesn't trust the people, why doesn't it dissolve them
and elect a new people?
Reply to: