


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);
Views
Replies
Sign in to like this content
Total Likes
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.
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.