[Gllug] Shell scripts
Jonathan Dye
jonathan.dye at automationpartnership.com
Fri May 3 09:36:43 UTC 2002
> From: John Hearns [mailto:john.hearns at cern.ch]
> Sent: 03 May 2002 10:25
> To: gllug at linux.co.uk
> Subject: Re: [Gllug] Shell scripts
>
> On Fri, 2002-05-03 at 11:00, Jonathan Dye wrote:
> > Hi,
> >
> > I have a script that removes a load of files from a directory tree and
then
> > copies a load of files in to replace the removed ones (from several
> > sources). What I want to do is provide some sort of progress
information
> > and I thought I could do this by getting a list of the files that are
going
> > to be deleted and then deleting them one at a time and calculating the
> > percentage of files deleted. This seems like a horrible idea as it
would
> > be spawning lots of processes so does anyone have any other suggestions?
>
> Me jumps in with both feet as usual.
> Use rsync with the --progress flag?
>
> Is there a good reason you need to delete the files before the copy?
The destinations are local lib and include directories for our software
build
and the new files are being copied from our system build directories. The
compiler includes both directories in the path with the local ones first so
that stuff is picked up from the system directory if there is no local copy.
When people build local version of components these override the system
versions but they need clearing out when a new build is copied.
JD
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list