in reply to Re^2: Can I use Perl to move an entire HTML file on a different server?
in thread Can I use Perl to move an entire HTML file on a different server?
The HTTP protocol cannot move or write files. Your idea cannot work. You need to have access to the file system of the target machine.
Maybe you can use UNC names like this:
my $machine = 'wwwdev'; my $sharename = 'wwwshare'; my $source = "\\\\$machine\\$sharename\\source\\directory\\filename.tx +t"; my $target = "\\\\$machine\\$sharename\\target\\directory\\new_filenam +e.txt"; rename $source, $target or die "Couldn't move '$source' to '$target' : $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can I use Perl to move an entire HTML file on a different server?
by salva (Canon) on Apr 13, 2006 at 11:37 UTC | |
by kjg (Sexton) on Apr 13, 2006 at 14:42 UTC | |
|
Re^3: Can I use Perl to move an entire HTML file on a different server?
by kjg (Sexton) on Apr 13, 2006 at 10:30 UTC | |
by nimdokk (Vicar) on Apr 13, 2006 at 16:31 UTC | |
by kjg (Sexton) on Apr 19, 2006 at 08:29 UTC | |
by nimdokk (Vicar) on Apr 19, 2006 at 14:29 UTC |