Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Move file from /usr/local/neolane/nl6/var/<instance name>/upload/ to /sftp/

Avatar

Level 1

Hi,

 

I am looking to move some files from /usr/local/neolane/nl6/var/<instance name>/upload/ to the sftp location. These are CSV files that have been uploaded via a webApp.

 

Below is the code I tried to use but I get the error "-53,mv: cannot stat '/usr/local/neolane/nl6/var/<instance name>/upload/1c0d19cf814ef415b1901c5785f83f8e.csv': No such file or directory"

Is there another way to do what I need? Thanks

 

var result = '1';
var systemCommand = "mv /usr/local/neolane/nl6/var/eircom_mkt_prod1/upload/1c0d19cf814ef415b1901c5785f83f8e.csv /sftp/<user>/incoming/";
result = execCommand(systemCommand, true);
logInfo(result);

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @patrickm2478362 

 

Move command only work when you have to move a file within the same server/instance. For your use case, you will have to use file transfer activity.

 


     Manoj
     Find me on LinkedIn

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @patrickm2478362 

 

Move command only work when you have to move a file within the same server/instance. For your use case, you will have to use file transfer activity.

 


     Manoj
     Find me on LinkedIn