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