Re: Perl Rename function unreliable?
- From: xhoster@xxxxxxxxx
- Date: 23 Jul 2005 00:01:04 GMT
"Rhugga" <chuck.carson@xxxxxxxxx> wrote:
> Has anyone experienced problems using perl rename() function? We have
> seen odd results using 3 different versions of perl. I have some code
> that renames some oracle archive logs and out of a run of say 100 logs
> it will fail to rename a handfull.
What message does it fail with?
> I examine that file stats and they
> are all identical in every possible way. (just different ctime/atime
> etc...) Perms are identical. The files are not open by another process
> (even though this doesnt matter per the documentation)
>
> I even added a sleep(5) between each rename() call.
>
> My OS types are a mix of Solaris 8 and 9.
>
> I'm using the rename command as follows:
>
> rename( $oldfile, $newfile) || die "Unable to rename $oldfile, manual
> intervention required.";
Include $! in the die string.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- References:
- Perl Rename function unreliable?
- From: Rhugga
- Perl Rename function unreliable?
- Prev by Date: Re: copy contructor
- Next by Date: Re: compare two dates MMDDYYYY
- Previous by thread: Re: Perl Rename function unreliable?
- Next by thread: IEEE NaN screwed up?
- Index(es):
Relevant Pages
|
|