Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?

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?
[mz2255]: I'm trying to post a question to "seekers of perl wisdom" but always getting a permission denied when I want to submit. There are no links in my post...
[ambrus]: again? someone complained about this just a few days ago (although eventually they could post)
[choroba]: Can you post the question in mz2255's scratchpad?
[ambrus]: Corion, if you're here, can you check the spam filter logs to see what's triggering this time?
[ambrus]: Petroza had trouble posting yesterday, but has posted Issues Fetching URL with a variable token since.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-10-19 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?