on 12-30-2014 3:30 PM
Hi!
Can someone help me with os commands after processing? It's not working...Is there something wrong with my command?
Command: mv "test.csv" "/xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/Test/test.csv"
This is from workbench log:
12/30/2014 4:25:17.251 PM | Information | send test.csv to /xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/ |
12/30/2014 4:25:17.252 PM | Information | Executing OS command: mv "test.csv" "/xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/Test/test.csv" |
So it seems that it's executing my command but the file is not moved to the Test directory. What can be wrong?!
Hi Stefan,
Hace you tried to use absolute paths?
Have you tried to do a shell script and to call it?.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried to use absolut paths...you mean something like this right?
mv "/xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/test.csv" "/xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/Test/test.csv"
I have not tried to do a shell script...It should be possible to do it this without using a script right?
Hi ,
Can you once try using as follows:
mv /xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/test.csv /xfer/chroot/transfer/xxisftp/test/SOI020/Receiver/Test/test.csv
I checked some documentation and Unix move command does not use a quotation. For example a link below.
Linux and Unix mv command help and examples
Thanks,
Sudhansu
>>>I understand they are executed from PI system, but I'm thinking, somehow the commands need to reach the SFTP, right?
No. If you want to execute some command on SFTP server then you'll to write some java/perl script again which will connect to SFTP server and execute those commands.
Then in PI channel you have to write a command which will execute that script.
The command that you write under PI channel, will be directly executed on PI Operating system.
Hi Stefan,
Although this wiki http://wiki.scn.sap.com/wiki/display/XI/SAP+XI+File+Adapter+OS+Command+Line+Feature is for FTP, you can check that the shell script needs to do the authentication as well. The SFTP adapter should work in the same way.
Regards.
Hi,
Please check if you have the assigned role: SAP_XI_CONFIG_FILE_OS_CMD_J2EE as per sap help.
Thanks,
Sudhansu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.