on 05-03-2015 1:06 AM
Hi,
I am trying to move a file from one directory to another using the exec function in DS, here is my script:
exec('/bin/sh', ' -c "mv /sapmnt/DSD/DataServices/Incoming/GCL/Neulion/test.dat /sapmnt/DSD/DataServices/Successful/GCL/Neulion"', 8);
My script works, except it move the entire Neulion directory instead of the file test.dat.
Does anyone have any idea why?
TIA
why don't you give file name as mentioned below:
exec('/bin/sh', ' -c "mv /sapmnt/DSD/DataServices/Incoming/GCL/Neulion/test.dat /sapmnt/DSD/DataServices/Successful/GCL/Neulion/test.dat"', 8);
Bold part if added part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.