on 09-22-2011 8:15 AM
Hi All,
My scenario is File -
>XI----->File.
Where i am picking the files through NFS sender channel and i need to place the files in FTP server
Because of Firewall issue i am not able to connect to FTP .
When i spoke to basis guy regarding this , he told its not possible directly to connect.
He told to use sh to connect.
i think sh in nothing but Shell script right?
as the server is running on UNIX,
As i gone through few forums on Run OS command Before/After Message Processing ,
i need some clarification how to proceed.
First i need to connect to the FTP server using Shell script ,
whether it is possible to send files to FTP which is out of Firewall through shell script?
Whether the Shell script should be written by XI consultant or by the unix programmers?
Can anyone share me the process how to write a shell script
for my scenario in order to connect to FTP which is out of Firewall.
Thanks
Sai.
Hi,
If you need to perform FTP via SSH, you can use SFTP Adapter. Check if you have SFTP adapter on your system, else ask your Basis Team to install the SFTP adapter. They can install the components for AEDAPTIVE SFTP adapter. No need to create Shell scripts.
See this link for details: http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver
Regards,
Jenny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be a script for move a file:
cd /$1
ftp -n -v <<%%EOF%%
open $2
user $3 $4
prompt
asci
cd $5
mput $6
bye
%%EOF%%
This Shell script, accept input parameters:
$1 => Source Directory
$2 => Receiver Hostname/IP
$3-$4 => FTP User & Password
$5 => Destination Directory
$6 => File Name
You can call this script also directly from your SAP XI Channel, or you can put it in Crontab in your UNIX OS (if you want to schedule the execution).
ps. ps. About what Basis guy said... IMHO he refer to SecureCoPy Connection (http://www.hypexr.org/linux_scp_help.php)...
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.