cancel
Showing results for 
Search instead for 
Did you mean: 

Run OS command to delay FTP sender on UNIX?

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I have a scenario FTP -> PI -> FTP.

I get about 30 files in at 1pm and the FTP sender adapter channel picks them all at once. But I need a minute in between each file, so the sender adapter picks files one by one every minute and not all of them at once.

I have been following the following thread:

http://forums.sdn.sap.com/thread.jspa?threadID=2037561

and there is the Windows command mentioned:

choice /C:a /D:a /T:2>nul

Our PI system runs on AIX though and I am not so familiar with OS commands

on UNIX. Does anyone know the equivalent command for to run on UNIX?

Thank you for any help with this,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

But I need a minute in between each file, so the sender adapter picks files one by one every minute and not all of them at once.

You can use option 1 in this blog by Mickael (see the start time in the diagram for solution N*1)

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4463

Hope this helps,

Mark

Edited by: Mark Dihiansan on Feb 24, 2012 9:51 AM

peter_wallner2
Active Contributor
0 Kudos

Hello Mark,

I think this only works for NFS - sender Adapter.

But I have an FTP sender Adapter. It does not work, all files are picked at once.

Best regards,

Peter

peter_wallner2
Active Contributor
0 Kudos

Hello,

I found the command for UNIX (AIX), it is called:

sleep

so putting in

sleep 30

into "Run Operating System Command After Message Processing" makes the FTP sender adapter pick files every 30 seconds, no matter how many are waiting in the FTP folder.

I hope this is going to be useful to others as well.

Best regards,

Peter

Answers (0)