in reply to Re^3: 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?
I'm getting permission denied now
This is my code now:
It's giving permission denied on the 'rename' bit. What accesses levels do I need to give to what?my $machine = 'ybslint01'; my $sharename1 = 'wwwdev'; my $sharename2 = 'wwwybs'; my $source = "\\\\$machine\\$sharename1\\streams\\$Config{'Author'}\\$ +Config{'Ref'}"; my $target = "\\\\$machine\\$sharename2\\ybsone\\pipeline\\master\\13A +pr\\$Config{'Ref'}"; rename $source, $target or die "Couldn't move '$source' to '$target' : $!";
This is the error:
Software error: Couldn't move '\\ybslint01\wwwdev\streams\5110\1144336035.htm' to '\\y +bslint01\wwwybs\ybsone\pipeline\master\13Apr\1144336035.htm' : Permis +sion denied at E:\Perlcgi\Pipeline\approve.pl line 189.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can I use Perl to move an entire HTML file on a different server?
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 |