Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th February 2012, 02:08 PM
akiross Offline
Registered User
 
Join Date: Feb 2010
Location: Italy
Age: 28
Posts: 58
linuxfirefox
tar archive multi-volume: info-script error

Hello,
I'm trying to use the info-script option when creating a multiple-volume archive using GNU tar.
In particular, I was trying the same example provided in the GNU tar manual (http://www.gnu.org/software/tar/manu...ple-Tapes.html).

Code:
tar -cvf archive.tar --tape-length=10240 /path/to/dir -F./myscript
using the provided script file:
Code:
#! /bin/sh
echo Preparing volume $TAR_VOLUME of $TAR_ARCHIVE.

name=`expr $TAR_ARCHIVE : '\(.*\)-.*'`
case $TAR_SUBCOMMAND in
-c)       ;;
-d|-x|-t) test -r ${name:-$TAR_ARCHIVE}-$TAR_VOLUME || exit 1
          ;;
*)        exit 1
esac

echo ${name:-$TAR_ARCHIVE}-$TAR_VOLUME >&$TAR_FD
Archive is created correctly, but when calling the script, tar quits with this:
Quote:
/bin/sh: ./myscript: Permission denied
tar: `./myscript' command failed
tar: Error is not recoverable: exiting now
I can't understand why that permission denied. Script is executable (also tried using 777).

Can someone help me, please?
TIA
~Aki
Reply With Quote
Reply

Tags
archive, error, infoscript, multivolume, tar

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Archive Shell Script C4talyst Programming & Packaging 6 15th January 2009 08:24 AM
Archive error glennzo Using Fedora 10 2nd November 2008 01:06 PM
Run script when volume is mounted MarkS Using Fedora 8 8th May 2008 06:40 PM
tar: multi-volume archives 1xused Using Fedora 1 10th November 2007 07:47 AM


Current GMT-time: 05:18 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat