on 11-30-2010 5:19 PM
Dear All
I am trying to execute a script before message processing in sender file communication channel with transport protocol NFS.
Although in my cc message display logs says:
Information Execute OS command "sh displayDate.sh"
but none of the commands inside the script is running.
I am using PI NFS directory as the location to place the script and executing it.
As the script is running fine when executed in command prompt there is no problem with the content script
Please help
Regards
Sourabh
Hi Sourabh,
Please provide the complete path name (absolute path name) of the Shell script that you are trying to execute. Eg:
/usr/sap/bin/displayDate.sh
where,
the shell script is "displayDate.sh"
and it is available in the folder: /usr/sap/bin
Note: The OS Command for the file adapter only runs on the system in which the Adapter Framework is running.
I hope this helps.
Regards, Gaurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Executing the script was never a problem in command prompt. It is executing using
$ /bin/sh displayDate.sh
The problem is executing the same script using the OS Command in the adapter
I have done chmod 777 displayDate.sh in the command prompt
Now when trying to execute the script using command line in adapter:
/bin/sh displayDate.sh
the script is not executing
Hi Markus
In SM21 follwing is stated
Error in technical configuration Error during the retrieval of logon data stored in
as there is no further information can we say that
There is error in the script: but script is running fine on command prompt
There is error in adapter configuration: in that case the scenario should not execute at all
Please suggest as what can be taced out from the log message
> In SM21 follwing is stated
> Error in technical configuration Error during the retrieval of logon data stored in
Also in long text? You may check the corresponding workprocess trace, see the second and third column in SM21, then open ST11 and check the corresponding dev_wXY trace for more information.
> There is error in the script: but script is running fine on command prompt
Is the script on command line also working in the same user context/with the same user as the SAP system is running? If you can't share the information that's in the script it's very difficult to help, check the workprocess traces, maybe they'll reveal something.
Markus
hi
My script looks like this:
code
-
#!/bin/sh
echo `date` Start > Execute1.txt
REAL_TZ=$TZ
TZ=CUT168
date "+%d %m %Y"|read dd mm yyyy
TZ=$REAL_TZ
var1=$dd-$mm-$yyyy
find . -name "$var1*" | xargs -I{} mv {} ./OUTPUT
echo `date` End > Executeend.txt
-
I am going through the traces in Sm21 and ST11 but till now haven't encountered any relevent information.
Hi
The script's role is tome move a set of files from the interface/PI/ directory to interface/PI/OUPUT directory which is not happening when trying to execute it from the file sender communication channel
The two files should also be created in the mount directory which is also not happening
Sourabh
Hi,
Where you placed script?? if you placed in NFS directiry, specify complete path in Communication channel and check the script what you have written should be correct.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.