Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:42:07+00:00 2026-06-05T17:42:07+00:00

My Perl script is moving files onto an NFS mounted filesystem, using the move

  • 0

My Perl script is moving files onto an NFS mounted filesystem, using the move function from File::Copy. Recently, some of the files returned an error, causing my script to print the message “move returned 0, A file or directory in the path name does not exist.” (move returns 1 on success, 0 on error, the error message is from $!)

The really weird thing is that the system that processes the files has reported back that it successfully processed the files that failed! I have never seen an error message from a successful write before, so I wonder if it has something to do with NFS. I thought it was strange that in a run where 28 files were moved, the first 24 failed and the last 4 succeeded. The script has been running with no errors for several months, and has now demonstrated this problem twice in 2 weeks.

The host is running on AIX, though I doubt that makes a difference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:42:10+00:00Added an answer on June 5, 2026 at 5:42 pm

    I think it is a NFS issue, not Perl. NFS could be really weird in some cases.

    You should stat/read the writed file and do not depend on reported errors.

    The File::Copy::Reliable module use the same error handling it will fail with same error.

    Form source:

    copy( $source, $destination )
        || croak("copy_reliable($source, $destination) failed: $!");
    

    Simply put the copy into an eval block, and try to read/stat the file in the destination.

    If you really cautious you could use md5/sha1 hash on both files to be sure that they are the same.

    Regards,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a Perl script which deletes the data from mqueue folder for
I have a perl script that grabs some files from a remote server and
I have written a perl script to send email using the gmail's smtp server:
I want my perl script to be able to do this: $ ./code file.txt
I have a perl script URL which gives me a ZIP file, it processes
I have a Perl script which maps two drives, and then proceeds to copy
My Perl Script retrieves the argument in the below way. Have Getoptions function to
A perl script that scrapes static html pages from a website and writes them
I have a perl script (or any executable) E which will take a file
I have a Perl script which retrieves data from MySQL Database. this is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.