Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

How to use OS Command in Receiver File Channel to copy file from one location to another

$
0
0

Hi Experts,

 

I am looking for an exact OS command to be used in Receiver File channel to copy the file placed in target directory to another directory as well.

Ideally i am picking 2 files status and data files from file server and placing the file in PI directory.Then i need the same data file to be copied to another directory as well for further processing.

I am using the command cp -r /sourcedirectory/filename /targetdirectory1.

The command is executed but file is not getting copied.

For testing purpose i am placing the file in shared folder and picking from there and placing in another shared folder.

Original path from where i am picking the file is like : \\sourcedirectory\FolderA and target path is \\targetdirectory1\FolderB

Please suggest what command should i use.

 

Regards

Rajat


Viewing all articles
Browse latest Browse all 3363

Trending Articles