on 01-29-2007 7:17 PM
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
Also, i want to tell you one more thing. Even if its executed and if ftp fails, you wont see that any where in XI.
Its better to use some other softwares like Control-M which have total control and alert handling in case of these FTP transactions.
XI command line thing can be used for simple commands like chmod etc etc to give sufficient permissions for the file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Khrisna ,
the blog says about windows , but i'm working on AIX OS , and send an error "?Invalid command" , how can i debug in UNIX?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ypu are executing the shell script in the XI system right ?
You can check this blog to help u to debug-
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
Rgds,
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is correct , in the script's code i've wrote an output in case an error occurs or not , in the XI file system i can't see the output file (because im sure the shell was executed) but the lines to upload the files are not working ,
i've tested from the prompt XI command line ,
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did u try executing from command prompt of XI system(not your laptop/desktop)?
also, did u give full path to the shell script. I just wanna make sure that XI is able to reach that shell script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.