Skip to Content
0
Former Member
Jan 29, 2007 at 07:17 PM

Problem with shell script

68 Views

Hi,

I have an issue with the file adapter in OS Command execution , i'm trying to this shell script:

-


#!/bin/sh

HOST='x.x.x.x'

USER='xxxx'

PASSWD='xxxxx'

FILEPARTY='partyOut.dat'

FILEPOSTAL='postalOut.dat'

FILETEL='telephoneOut.dat'

FILEMAIL='emailOut.dat'

ftp -n $HOST > /sapinstall/XI/ftp.log 2> /sapinstall/ftp.err << END_SCRIPT

quote USER $USER

quote PASS $PASSWD

bin

cd /ilytics/data/incremental/input/

put $FILEPARTY

put $FILEPOSTAL

put $FILETEL

put $FILEMAIL

quit

END_SCRIPT

exit 0

-


when i execute this script directly from the command prompt works fine , but when i execute from XI File adapter in parameter "execute OS after message process" can't make the upload ...

The shell is on the XI side , the user for the connection have all permissions , i need make special configurations for this kind of scripts????,

regards