Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Alistair Grant" Reply-to: alistair AT alphalink DOT com DOT au To: cygwin AT cygwin DOT com Cc: alistair AT alphalink DOT com DOT au Date: Tue, 10 Sep 2002 13:45:01 +1000 Subject: tar -X Message-id: <3d7d6abd.c86.0@alphalink.com.au> X-User-Info: 155.35.248.112 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I'm attempting to exclude files in tar using the -X option, however it appears that tar is still attempting to at least stat the file. The command is: tar czf /e/backup/profile.tar.gz -X /e/bin/backup.dat alistair backup.dat contains: alistair/NTUSER.DAT ./alistair/NTUSER.DAT NTUSER.DAT *UsrClass.dat *UsrClass.dat.LOG *NTUSER.DAT *NTUSER.DAT.LOG And tar returns: tar: alistair/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat: Cannot open: Permission denied tar: alistair/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat.LOG: Cannot open: Permission denied tar: alistair/NTUSER.DAT: Cannot open: Permission denied tar: alistair/NTUSER.DAT.LOG: Cannot open: Permission denied tar: Error exit delayed from previous errors The reason this is a problem is that I'm running tar in a script and would like to check for errors, however it is always returning an error at the moment. Is there a way to exclude files that are open without this type of error? Thanks, Alistair. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/