Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Move a file to another directory based on regex match

by haukex (Bishop)
on Feb 26, 2021 at 08:11 UTC ( #11128820=note: print w/replies, xml ) Need Help??


in reply to Re^2: Move a file to another directory based on regex match
in thread Move a file to another directory based on regex match

Thank you. I tried as per your kind suggestion , but didnt work. My $InDir value is /spool/input/parse and $OutDir is /spool/input/parsed

Still a bit strange. Could you please try the following things / give us the following information?

  • Try picking a fixed pair of paths and see if perl -wMstrict -MFile::Copy -e 'move("/spool/input/parse/FILENAME","/spool/input/parsed") or die $!' produces the same error
  • Show the output of perl -V
  • Show the output of perl -MFile::Copy -le 'print $File::Copy::VERSION'
  • Show the output of ls -ld /spool /spool/input /spool/input/parse*
  • Show the output of mount | grep spool
  • Let us know how you're running this script, e.g. from the command line, from cron, from a webserver, from some other script or a batch file, some other job scheduler, etc.?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11128820]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-05-14 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (148 votes). Check out past polls.

    Notices?