cancel
Showing results for 
Search instead for 
Did you mean: 

OS command required to move a file

Former Member
0 Kudos

Hello All,

Requirement is to move the Incoming source file from one dir to another dir. Hope we can achieve this using the OS command option in sender file communication channel. I dont want to go for a script which would be called from channel instead I want a OS command.

Can someone help me in framing the OS command

Thanks,

Naresh

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi naresh

If you are in linux try with this:

In the same host:

cp %F <target dir>

In different host:

scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]

Regards.

Answers (1)

Answers (1)

zameerf
Contributor
0 Kudos

Hi,

>>Requirement is to move the Incoming source file from one dir to another dir


Any specific reason for using OS command to move file? and what file would be the actual sender file channel picking up? May be if you are thinking to archive the actual file once it is picked, you can try using the archive option in sender file channel.

Former Member
0 Kudos

Whatever the sender communication channel is picking up, the same needs to be archived in 2 different directories. As we dont have option of archiving in multiple locations, I am thinking for a Unix command.