Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Ronald Landheer" To: "Hovey, Leland" , Subject: RE: a shell script corrupting the file system Date: Fri, 5 Oct 2001 07:50:09 +0200 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) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Hello Leland, The setup of your script is (almost) the same as mine, and I don't have any problems. The only difference is that I use POSIX paths for everything, but it shouldn't corrupt the filesystem if you don't. Does the same problem occur when you have it produce multiple little files (i.e. tgz the subdirs separately, or something similar)? Your script seems fine - I don't see any problems with it. Greetz! Ronald > -----Original Message----- > From: cygwin-owner AT sources DOT redhat DOT com > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Hovey, Leland > Sent: Wednesday, October 03, 2001 3:25 PM > To: cygwin AT cygwin DOT com > Subject: a shell script corrupting the file system > > > I've been using the following shell script and each use corrupts the file > system. So, then I have to use NT's check/fix disk utility to > fix it. The > script produces a file sized ~163Mb. The C disk has 350 Mb of free space > and the D disk has 700 Mb. > > Any suggestions of what the problem is, or leads on what to look > for? Could > it be a swap space problem? > > thanks, > Leland H. > > ------------------------------------------------------------------ > ---------- > -- > ------------------------------------------------------------------ > ---------- > -- > #!/bin/sh > > # > # Backup program for 100MB zip disk. > # > > # Usage: backup.sh > > # Create file name. > dateStr="`date '+%d.%m.%Y'`.backup.tar" > > # Create tar file. > cd D:/"System Administration" > tar cf $dateStr ../Projects \ > ./backup.sh \ > C:/WINNT/Profiles/lhovey/"Local Settings"/"Application > Data"/Microsoft/Outlook/*.pst > > # Compress tar file. > gzip $dateStr > > # Obtain compressed file size. > sizeStr=`ls -gol $dateStr.gz | cut -d ' ' -f 6` > > # If zip file is greater than 90MB, split into 90MB subfiles. > #if [ $sizeStr -ge 94371840 ] > #then > # > # split -b94371840 $dateStr.gz $dateStr.gz > # rm $dateStr.gz > #fi > > -- > 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/ > -- 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/