Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: File Copy over Domain

by Anonymous Monk
on Feb 08, 2013 at 09:47 UTC ( #1017784=note: print w/replies, xml ) Need Help??

in reply to Re: File Copy over Domain
in thread File Copy over Domain

That is a solution. But my connection keeps breaking so the share wont be available then. So I want the scanner machine to pull those result files after a specified time interval

Replies are listed 'Best First'.
Re^3: File Copy over Domain
by Corion (Pope) on Feb 08, 2013 at 09:51 UTC

    Then maybe you want to send them by mail? Or use rsync to copy the files over when the connection has been restored?

    I think it will be far more efficient if you describe to us the exact setup and network environment, so that we don't have to guess at a good solution multiple times. Maybe you can also tell us the exact problem you're trying to solve. Having a view of the big picture often helps in understanding the implied constraints.

      I have windows machine in a domain. Now I need to run a perl executable on x machines in the domain. Okay?

      Now there is this one main server which throws the perl executable to thses x machines . This perl exe generates a output file which keeps on modifying. The reult files needs to be pulled by server from x machines and then they are compiled at server for final result. Server needs to pull these result files after every y minutes. Can i do that?

      What i do now is that i create a share on server and the writing the result files to it as Corion already suggested. But then i lose connection and it creates a problem. So Now I want to create reult files on x machines and then want server to pull them after y min.How to do it?

        I would consider one of <trike>three four approaches:

        1. On each client: Use rsync to upload the file from the client, possibly retrying every five minutes. Rsync can resume transfers that broke instead of starting fresh every time.
        2. On the server: Use rsync to download the files from the clients on the server, possibly retrying every five minutes. Rsync can resume transfers that broke instead of starting fresh every time.
        3. On the server: Use File::Copy on the server to copy the file from the client using an Admin Share (\\machine\C$\)
        4. Push a second Perl executable to the clients that uploads the files. If the client has no network connection, it won't receive the "upload now" command.
Re^3: File Copy over Domain
by bart (Canon) on Feb 08, 2013 at 11:31 UTC
    If your machine keeps disconnecting then you'll have to reconnect.

    One way that works on Windows without re-entering the password is to use Windows Explorer to open a window on it. Just

    system("start E:");
    (if E: is the drive letter for the share) should do.

    Of course, after a while, you'll end up with a bunch of windows (or 1, at best) that you don't need. Oh, well. :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017784]
[Your Mother]: Packed with minority women.
[LanX]: pitty they burned the actors in Stargate
LanX ... uhm ... wait...
[Eily]: LanX I don't see the woman
[LanX]: at the right, tanned , gib boobs, chains
[LanX]: big
[Your Mother]: That show, in hindsight, is terribly ominous... playing apologist and glorifier for Vietnam vets. Attempting to neuter violence as a valid tool where no one ever really gets hurt...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-03-19 14:46 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.