Move file from /usr/local/neolane/nl6/var/<instance name>/upload/ to /sftp/ | Community
Skip to main content
New Member
October 3, 2022
Solved

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

  • October 3, 2022
  • 1 reply
  • 884 views

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);

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

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.

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
October 6, 2022

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  | https://themartech.pro