moving files accross network with Perl
Results 1 to 4 of 4

Thread: moving files accross network with Perl

  1. #1
    Junior Member
    Join Date
    Dec 2002
    Posts
    23

    moving files accross network with Perl

    I am relatively new at this, but here is the situation. I have a group of recordings at point A on our network (windows 2000 server box). They are placed there by a verification division after verification. I have written a perl script that reads the final fields (Date) into an array and creates a folder to copy them to on point B (linux). The problem is, I can not get them to copy. I have mounted the windows 2000 filesystem using samba, and currently I am trying to use:

    system(`mv $sourcedir,$destfile');

    It is not working. Does anyone have any ideas? Thank you.

  2. #2
    Member n00bius's Avatar
    Join Date
    Mar 2005
    Location
    texas
    Posts
    86
    i'm not too familiar with the perl script you're using (i'd be really interested in reading it, i'm somewhat of a newbie with perl) but i have enuogh experience with Samba. Have you tried usign the script on the windows system, and how about doing it yourself to see if it can be done manually.

    I know you have to mount the share on the Un*x system, you might have incorret credentials, or not have access to the share on either system. Also, the user who moves the file must have write access to the Unix folder, and read access on the windows system.
    ...:::Pure Kn0wledge:::...

  3. #3
    Senior Member
    Join Date
    Jul 2004
    Posts
    469
    This was a rather old post, so I hope he has found the answer by now but, I'm going to venture to guess that the reason it won't copy is the comma in the mv command. Syntax is "mv source destination".

  4. #4
    Junior Member
    Join Date
    Dec 2002
    Posts
    23

    thank you guys

    THanks guys!! The problem was the comma.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •