Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > moving/renaming directory between NFS mounts

Reply
Thread Tools

moving/renaming directory between NFS mounts

 
 
Marten Lehmann
Guest
Posts: n/a
 
      11-21-2008
Hi,

I want to move a complete directory by perl from one NFS mount to
another. At the linux shell, I would simple enter

mv source target/

But in perl this doesn't work, neither with rename nor with File::Copys
move. I know that internally it is not a rename but a copy and delete,
so I didn't expect rename() to work. But I don't want to run through the
whole directory tree. I want to keep it as simply as the linux shells mv
command, but I only want to use system("mv source target/") if there is
no other way. I couldn't find a helpful modul. Any ideas?

Kind regards
Marten
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java rename and NFS directory loial Java 2 11-01-2007 04:54 PM
Omni-NFS NFS Server Buffer Overflow Ron Martell Computer Support 0 11-07-2006 09:02 PM
Power supply that mounts below camera using tripod screw/ever hear of one? Bill Mcdonald Digital Photography 3 02-15-2004 06:40 PM
Tripod mounts for cheap digital cams? Dr. Dagor Digital Photography 9 10-07-2003 01:02 PM
using SMB as filesystem mounts john bailo Java 3 09-11-2003 08:36 AM



Advertisments