From owner-freebsd-questions Sun Mar 26 7:46:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from weeble.dyndns.org (ubppp248-246.dialin.buffalo.edu [128.205.248.246]) by hub.freebsd.org (Postfix) with ESMTP id A423A37B79A for ; Sun, 26 Mar 2000 07:46:46 -0800 (PST) (envelope-from cjm2@earthling.net) Received: from shithead (shithead.weeble.dyndns.org [10.0.0.2]) by weeble.dyndns.org (8.9.3/8.9.3) with SMTP id KAA56799 for ; Sun, 26 Mar 2000 10:46:47 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "FreeBSD Questions" Subject: bzip2 tries to compress itself... Date: Sun, 26 Mar 2000 10:46:47 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm having a problem with bzip2, it's trying to compress itself when called from within a shell script. I was originally calling it with the -y option to tar. When that started causing me trouble I just ran bzip2 by itself. Both ways it's trying to compress itself before it compresses the actual file on the command line. For example, the following command: /usr/local/bin/bzip2 -9 /var/backup/backup.tar ...will work fine from a prompt, but if called from a shell script, resulted in the following: bzip2: I/O or other error, bailing out. Possible reason follows. bzip2: Operation not permitted Input file = /usr/local/bin/bzip2, output file = /usr/local/bin/bzip2.bz2 bzip2: Deleting output file /usr/local/bin/bzip2.bz2, if it exists. bzip2: WARNING: some files have not been processed: 2 specified on command line, 1 not processed yet. The failure is due to me setting "schg" on bzip2, since every time it got called it was being deleted and replaced by bzip2.bz2. Has anyone else run into the problem, or have any insights. Thanks -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message