cancel
Showing results for 
Search instead for 
Did you mean: 

OS Command to Move old files

Former Member
0 Kudos

Hi all

Do v have any OS level command which can move older files from one folder to other in

the sender file adapter?

Thanks and Regards

satish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

what do you mean by "Old files" ?

Thanks

Aamir

Edited by: Aamir Suhail on Jul 10, 2009 8:03 AM

Former Member
0 Kudos

Dear Aamir

My legacy system creates files every day with name PO number<Currentdate>.txt containing all POs and updates the same file

continously. so to read the file i need to place *.txt in sender communication channel and i am planning to move old flles by a OS command

thanks

satish

Former Member
0 Kudos

I don't know how you are going to determine the old files.... but the move command is mv

mv $filename $trgdir

$filename - is a variable for the file to be moved..;

$trgdir is the target directory to be moved...

-SM

Former Member
0 Kudos

hey

So the issue is that you don't want to read partial file when legacy system is overwriting it?

You can achieve this by executing a OS command via sender File adapter(before message processing) but this will only work on NFS(not on FTP)

If you are picking file from FTP,then you need to run OS command independent of XI sender channel.

Thanks

Aamir