skynelson has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to copy a file from one machine to another with a different IP address, using perl. I have used my script to write the new file (on machine A), which is a DOS batch file. Now I would like to xcopy the file over to machine B, where it will be run by the windows scheduler.
OPENDIR, READDIR, CHDIR, RENAME
Can I use some command to run an external DOS command like xcopy? Or is there a set of commands in perl which are appropriate to the task?
I have begun looking at:
OPENDIR, READDIR, CHDIR, RENAME
Will these work if I supply them with a full path including an IP address?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Copying a file across servers in DOS
by Kanji (Parson) on Oct 19, 2010 at 02:07 UTC | |
Re: Copying a file across servers in DOS
by kcott (Archbishop) on Oct 18, 2010 at 23:31 UTC | |
Re: Copying a file across servers in DOS
by tokpela (Chaplain) on Oct 19, 2010 at 16:29 UTC | |
Re: Copying a file across servers in DOS
by Anonymous Monk on Oct 19, 2010 at 01:17 UTC | |
Re: Copying a file across servers in DOS
by aquarium (Curate) on Oct 19, 2010 at 22:06 UTC |
Back to
Seekers of Perl Wisdom