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

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

  • October 3, 2022
  • 1 reply
  • 882 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_
_Manoj_Kumar_Accepted solution
New Participant
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     Find me on LinkedIn