RE: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread iggchamp
- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 07 June 2007 14:48 > To: u2-Users > Subject: [U2] [UV] Efficient way of determining if item is inuse > > Hi all, > > UV10.1.8 (PICK FORMAT) > HPUX 11 > > I am writing a routine that monitors

Re: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Dave Taylor
olling Hills Estates, CA 90274 800-SYSMARK (800-797-6275) (O) 310-544-1974 (C) 310-561-5200 (F) 310-377-3550 www.sysmarkinfo.com Your Source for Integrated EDI Translation, DataSync Integration and Software Migration Authorized IBM Business Partner - Original Message - From: <[EMAIL PROTECTED]>

RE: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Kevin King
Create the file under a temporary name and rename it to a "findable" name when the transfer is complete. -Kevin [EMAIL PROTECTED] http://www.PrecisOnline.com ** Check out our FREE support forum at http://www.PrecisOnline.com/forum/. --- u2-users mailing list u2-users@listserver.u2ug.org To

RE: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Les Hewkin
Try using FILELOCK Les Sherlock Hewkin Project Manager - Financial Systems 01604 592289 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 07 June 2007 14:48 To: u2-Users Subject: [U2] [UV] Efficient way of determining if item

RE: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Dave Davis
You could wait for another "signal" file (it can be empty) to exist. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, June 07, 2007 9:48 AM To: u2-Users Subject: [U2] [UV] Efficient way of determining if item is

Re: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Jeff Schasny
Let the process creating the file tell you when its don. Write it as one name then change the name when the write is completed (bad psudocode below): OPENSEQ '/tmp/somefile' to OUTFILE ELSE DO SOME STUFF LOOP WHILE NOT(DONE) WRITESEQ LINE ON OUTFILE REPEAT SH -C "mv /tmp/somefile /tmp/some

Re: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Jeff Schasny
don = done... ira gud typer [EMAIL PROTECTED] wrote: > Hi all, > > UV10.1.8 (PICK FORMAT) > HPUX 11 > > I am writing a routine that monitors/imports files from a particular > directory. It is important for me to not begin processing a file that is > not finished being transferred. What I a

RE: [U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread Anthony Youngman
worse case is loop 1 catches it being copied, loop 2 doesn't process because the file size has changed, and it only gets processed third time around. Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 07 June 2007 14:48 To: u2-Users Subject: [

[U2] [UV] Efficient way of determining if item is inuse

2007-06-07 Thread iggchamp
Hi all, UV10.1.8 (PICK FORMAT) HPUX 11 I am writing a routine that monitors/imports files from a particular directory. It is important for me to not begin processing a file that is not finished being transferred. What I am trying now is using the fuser command and boy is it dog slow. My