On Wed, 29 Jan 2014 16:10:25 -0600
"Martin G. McCormick" <[email protected]> wrote:
> I keep getting the "Usage" help message and a
> permission denied. If I su to root and manually make the move,
> it works.
change "system" to "print" to print out the command that would be run,
and (a) you'll likely see the problem, or (b) you can try running that
exact command.
> system(
> "mv $directories$filename \"$directories\"deleted_keys/"
> );
I doubt you meant that extraneous \" in the middle there - I suspect
you meant \"$directories/deleted_keys\".
Oh, and make sure that the variables you're interpolating there aren't
from an untrusted source :)
Cheers
Dave P
--
David Precious ("bigpresh") <[email protected]>
http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan www.preshweb.co.uk/github
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/