on 04-14-2011 7:57 AM
Hi all,
Requirement:
PI need to pick the file from source directory and send it to target directory using SFTP.
I'm using SCP command for this purpose.
When I run the shell script (with simple SCP command) from command prompt, script is working fine.
Same script is called from PI File adapter but script is not getting invoked.
In the communication channel logs, "Executed OS command" is available. There are no Error/Warning messages in the log.
NFS transport protocol is used in the File communication channel.
Complete directory path of the shell script is mentioned in File channel -> Run Operating System command after message processing.
Even the following simple command is not working from PI receiver file channel:
echo "Test file" >> /data/test.txt
Please let me know if I'm missing out something.
Thanks,
Geetha
Hi all,
Issue resolved. Username did not have proper authorizations to establish SFTP connection to the target server.
Thanks,
Geetha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geetha ,
I'm also facing the same issue command is executing but the the file what I'm excepting is is not updating .
could you please help me what authorizations are missing it will be really helpful to me .we are using the single stack PO 7.5
I hope you will see me message reply back and help me out from this issue.
Thanks & Regards
Bharath
If you have Abap stack and Java stack on one machine, they share the same filesystem. It means you can try, just for test, create command in TA SM69. It can help you to identify your problem - you shall see the output from the shell there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>Even the following simple command is not working from PI receiver file channel:
>> echo "Test file" >> /data/test.txt
Is your script has beginning line as follow...
#!/bin/sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geetha!
check this [wiki|http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature].
On Unix you have to start all your commands with 'sh'. In your example it should be something like: sh echo "Test file" >> /data/test.txt'
or as mentioned in previous post and also on wiki page, write your command(s) into executable .sh script and just start the script with 'sh <<yourscript.sh>> %f'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geetha,
the os command is executed on PI server, not on FTP server.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Geetha,
I think the syntax u are using is not correct. Please follow the below syntax:
/path/<script_name> %F
for ex: /staging/Interface/XI/Script/FTPData %F
use the above in the communication channel.
%F should be after a space.
FTPData is the script name
/staging/Interface/XI/Script/ is the location where the script is present
Cheers,
Souvik
Edited by: Souvik Chatterjee on Apr 14, 2011 3:38 PM
User | Count |
---|---|
84 | |
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.