Thanks chuck, that sounds like a good plan.  Maybe I will look at using fuser 
to see if anyone is attached to the file at copy time too.
-------------- Original message -------------- 

> I don't necessarily log people off when I do this, but I check the 
> modification time before I start the copy, do the copy, and then check the 
> mod. time after the copy. If it hasn't changed, you're safe .. This works 
> well on smaller and low traffic files .. 
> -Chuck 
> 
> -----Original Message----- 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Behalf Of 
> [EMAIL PROTECTED] 
> Sent: Wednesday, May 11, 2005 10:29 PM 
> To: u2-users@listserver.u2ug.org 
> Subject: Re: [U2] Unix copying Universe files 
> 
> 
> Thanks for responding Bruce. The last time that I did it, I was sure that 
> all users had logged off. 
> 
> -------------- Original message -------------- 
> 
> > Goo'day, Scott 
> > 
> > At 23:52 11/05/05 +0000, you wrote: 
> > 
> > >Hi All, 
> > > 
> > >UV9.6 
> > >HPUX 11 
> > > 
> > >I have a program that I use to update our test account from time to time 
> > >using the unix cp command. It works fine except... Every once in a while 
> > >I run into a corrupted file. I am guessing that it is because the file 
> > >has yet to be written to disk. Has anyone out there had success in 
> > >routinely copying files in this manner? Would it help if I issued a sync? 
> > > 
> > >Any help would be greatly appreciated. 
> > 
> > Are you sure everybody's logged off...... and kept off...... for the 
> > duration of "cp"??? 
> > 
> > 
> > >-- 
> > >No virus found in this incoming message. 
> > >Checked by AVG Anti-Virus. 
> > >Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/05 
> > 
> > Regards, 
> > 
> > Bruce Nichol 
> > Talon Computer Services 
> > ALBURY NSW 2640 
> > Australia 
> > 
> > http://www.taloncs.com.au 
> > 
> > Tel: +61 (0)411149636 
> > Fax: +61 (0)260232119 
> > 
> > If it ain't broke, fix it till it is! 
> > 
> > 
> > -- 
> > No virus found in this outgoing message. 
> > Checked by AVG Anti-Virus. 
> > Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/05 
> > 
> > 
> > 
> > 
> > -- 
> > No virus found in this outgoing message. 
> > Checked by AVG Anti-Virus. 
> > Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/05 
> > ------- 
> > u2-users mailing list 
> > u2-users@listserver.u2ug.org 
> > To unsubscribe please visit http://listserver.u2ug.org/ 
> ------- 
> u2-users mailing list 
> u2-users@listserver.u2ug.org 
> To unsubscribe please visit http://listserver.u2ug.org/ 
> ------- 
> u2-users mailing list 
> u2-users@listserver.u2ug.org 
> To unsubscribe please visit http://listserver.u2ug.org/ 
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to