On Wed, 29 Jan 2014 16:10:25 -0600
"Martin G. McCormick" <mar...@server1.shellworld.net> 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") <dav...@preshweb.co.uk>
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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to