cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello

I am having SFTP server from which I am supposed to poll files. I have writtten a shell script to get the files from the SFTP location and had this OS level command called from XI adapter.

So the shell script first gets the file from SFTP server (since XI at present doesn't support SFTP) and then adapter will poll the same.

My problem is once i am done with my SFTP get i should be able to rename the files. But it seems rename can only rename one file at a time and can't rename multiple files at a time. i tried to use wild card characters but its of no use.

had anyone done renaming multiple files at a time on the FTP server? i was trying to use ls to get hte list of files and then loop on it but don't know how to do the same.

Thanks in advance.

Regards

Rajeev

0 Likes
View Entire Topic
hemant_chahal
Contributor
0 Likes

Hi,

check this blog ,https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/7036s [original link is broken] [original link is broken] [original link is broken]

thanks,

Hemant

Former Member
0 Likes

Hemant,

That blog is really about SFTP and FTPS comparison and overall mechanism which we already know. My question is more specific about how to implement the same in the shell file.

Thanks and Regards

Rajeev Patkie