ÁâÐÝØáÛÐÒ <[email protected]> ha escrit:
> It would be nice to have an ability to use 'command' for
> --new-volume-script switch instead of 'script'
You can use arbitrary command as an argument to --new-volume-script.
> for example:
> ---
> #!/bin/bash
>
> tape_change () {
> echo change tape
> }
>
> tar -cvf -f /dev/nst0 --new-volume-script tape_change ...
tape_change is a shell function, and cannot be used as argument.
Instead, write:
tar -cvf -f /dev/nst0 --new-volume-script 'echo change tape'
Regards,
Sergey