Re: Solved mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-31 Thread Jan Gruber
Hi Martin, I feel embarrassed for wasting everybody's time, but I really appreciate the help. sometimes one needs to think out loud to solve a problem. I had a lot of problems like this one where it helped to get feedback from this list. Regards, Jan -- Paranoia is simply an

Re: Solved mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-31 Thread Jan Gruber
Hi Martin, I feel embarrassed for wasting everybody's time, but I really appreciate the help. sometimes one needs to think out loud to solve a problem. I had a lot of problems like this one where it helped to get feedback from this list. Regards, Jan -- Paranoia is simply an

mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Martin G. McCormick
I have a perl script that I run as root which needs to move a file from where it is to another directory. I keep getting the Usage help message and a permission denied. If I su to root and manually make the move, it works. The perl script is not trying to run suid to

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread David Precious
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)

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Hal Wigoda
Is the directory you are moving to writable? Sent from my iPad On Jan 29, 2014, at 4:10 PM, Martin G. McCormick mar...@server1.shellworld.net wrote: I have a perl script that I run as root which needs to move a file from where it is to another directory. I keep getting the Usage

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Charles DeRykus
On Wed, Jan 29, 2014 at 2:10 PM, Martin G. McCormick mar...@server1.shellworld.net wrote: I have a perl script that I run as root which needs to move a file from where it is to another directory. I keep getting the Usage help message and a permission denied. If I su to root

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Ron Bergin
Martin G. McCormick wrote: I have a perl script that I run as root which needs to move a file from where it is to another directory. I keep getting the Usage help message and a permission denied. If I su to root and manually make the move, it works. The perl script is

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Martin G. McCormick
Ron Bergin writes: As has already been mentioned, part of the problem is your quoting. What is the value of $directories and more specifically, does it end with a forward slash? Personally, I prefer to leave off the trailing dir separator because IMO it makes it more clear later when the

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Martin G. McCormick
David Precious writes: change system to print to print out the command that would be run, Great suggestion! I actually did try that using echo instead of print so that system was still involved and the values were correct. It looked beautiful. and (a) you'll likely see the problem, or (b) you

Solved mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Martin G. McCormick
This is a classic example of the admonition, Never trust data. I did try the following: David Precious writes: 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. I

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Shawn H Corey
On Thu, 30 Jan 2014 07:47:29 -0600 Martin G. McCormick mar...@server1.shellworld.net wrote: David Precious writes: change system to print to print out the command that would be run, Great suggestion! I actually did try that using echo instead of print so that system was still involved