If overwriting existing files, please check both the source and target files are not in use beforehand and ensure they remain unused for the duration of the copy. As options:
- Modify the file permissions - whether POSIX or ACLS - to ensure exclusive access for the duration.
- Alternatively rename the relevant sub-directory structure temporarily - after checking with "fuser" before the rename and again afterwards to be certain.
If using UniVerse 12, please be sure to review the '
uvunload' command as well to ensure any files copied or moved at the O/S level are unloaded from the System Buffer beforehand.
------------------------------
John Jenkins
Principal Technical Support Engineer
Rocket Software Limited
U.K.
------------------------------
Original Message:
Sent: 01-19-2021 12:41
From: Sandy Barry
Subject: Universe File COPY
Hi Brian- we currently use samba shares and we are trying to eliminate them. Our security team does not approve of them. So we have hundreds of files sitting on samba shares that we will be transferring to windows servers using an automated FTP program.
------------------------------
Sandy Barry
ARAMARK
Original Message:
Sent: 01-19-2021 10:45
From: Brian Paige
Subject: Universe File COPY
Also – and my apologies for not thinking about this until now, but have you looked into using Samba shares? That would eliminate the need for the monitoring/copying process.
Brian Paige
Original Message:
Sent: 1/15/2021 9:09:00 AM
From: Sandy Barry
Subject: RE: Universe File COPY
Thanks I will try that.
------------------------------
Sandy Barry
ARAMARK
Original Message:
Sent: 01-14-2021 08:59
From: Brian Paige
Subject: Universe File COPY
Have the monitoring program use the unix 'fuser' command on each file it checks. If the command returns a PID, then another process (the copying process) still has the file open.
We use the '-o' option, but we're running AIX so options might be a little different on Linux.
Brian Paige