Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

File Copy over Domain

by Anonymous Monk
on Feb 08, 2013 at 09:32 UTC ( #1017781=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I am working on Windows environment. I have a scanner machine and a target machine. I am throwing a perl exe from scanner to target which are in same domain with the help of PSExec. Now this perl exe generates some result files on target machine. Now how can I check for these result files on target machine and pull them back to the scanner machine?

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

    The easiest way would be to have a Windows share available to both machines. Your "thrown" program could use File::Copy to copy the files after acquiring them onto that share, where your other program will find them.

      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

        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.

        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-09-01 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (47 votes), past polls