[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Feature: posibility to use --new-volume-script with comman
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] Feature: posibility to use --new-volume-script with command |
Date: |
Fri, 11 Mar 2011 21:17:18 +0200 |
ÁâÐÝØáÛÐÒ <address@hidden> 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