Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Use exec to move file on Linux?

$
0
0

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


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>