[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar errorcode with perl
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] tar errorcode with perl |
Date: |
Fri, 26 Nov 2004 18:32:16 +0200 |
Andreas Mürdter <address@hidden> wrote:
> i using a perl script to make a backup to tape with following command:
> @result = `tar -cvzf /dev/sto $dir 2>&1`;
What version of GNU tar and on what operating system are you using?
> if there is no tape in the streamer and I backup only a small directory
> like "/etc", I get an errorcode "512".
> when I backup a bigger directory "/var" I get an errorcode with "13"
Tar itself uses the following exit codes: 0,1,2. The only case when tar
may exit with another exit code is when it runs a child program and
that program exits with a non-zero status. In your case 512 and 13 seem
to be exit codes of gzip program.
Regards,
Sergey