Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Unable to connect to FTP server from Shell Script : FTP command not found

$
0
0

hi Experts,

 

we are using the following shell script in sender file channel, option "Run operating system command before message processing " to connect to a remote FTP server to pick a specific file.

In sender channel , we giving the path as /files/PI/100/Test/file.sh

 

 

#!/bin/sh
var="abc_20120803"
HOST="A"
USER="B"
PASSD="C"
ftp -n $HOST << END_SCRIPT >

user $USER $PASSD

cd /root
lcd /files/PI/100/Test/
mget $var.xml
bye
END_SCRIPT

We are unable to copy the file to local PI directory.Even when we tried by using echo command to get the log .we are getting error as

"files/PI/100/Test line 6: ftp: command not found"

 

please suggest me.

 

Thanks

Dhileep

 

 


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>