Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by DAN0207 (Acolyte)
on Feb 25, 2021 at 16:58 UTC ( #11128791=note: print w/replies, xml ) Need Help??


in reply to Re: 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

  • Comment on Re^2: Move a file to another directory based on regex match

Replies are listed 'Best First'.
Re^3: Move a file to another directory based on regex match
by haukex (Bishop) on Feb 26, 2021 at 08:11 UTC
    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://11128791]
help
Chatterbox?
and the web crawler heard nothing...

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





    Results (148 votes). Check out past polls.

    Notices?