on 04-20-2016 8:23 AM
Hello All,
My scenario is as below -
To pull the Zip file from SFTP server and then keep it on NFS server after unzipping it.
The zip file contains 2 files one is xml file and another one is pdf file.
I need to have them separately on NFS when I unzip them.
As of now suppose I pull one abc.zip file containing 1.xml and 1.pdf file from SFTP server, after unzipping I am able to see only abc.zip file (unzipped) on NFS server.
Could you please let us know the things required?
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
By applying the PayloadSwapBean now the XML file is visible but how about the other PDF file?
Additionally my requirement is that - I will have one zip file on SFTP server which will contain n xml and n pdf files so once those are unzipped I should be able to see all the files separately on NFS.
Refer to my responses in this thread.
A similar requirement but with different adapters but my response holds true.
http://scn.sap.com/thread/3888572
Regards
Bhavesh
Hello Raghuraman,
In that case I am getting the unzipped single file and content is messed up.
I need to have on NFS two seperate files one is pdf and another is XML.
This is just one test case, in actual it may be a case that I will have 1 zipped file and after unzipping there could be 30 pdfs and 30 xmls.
Hello All,
Issue resolved, basis guys altered a script a bit and it is now working as expected.
Thanks for the help.
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
One thing noticed, when script is getting executed, the zip file getting disappeared but the new unzipped files are not getting created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rahul,
Try to use OS system Commands for unzip & Sorting. It may ease your work.
Regards,
Sateesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sateesh,
Yes I tried with the unzip command, the command is getting executed but I am not able to see the unzipped file.
Below is the command I have written.
#!/bin/bash
#
SOURCEDIR=/interface/id091/test/
TARGETDIR=/interface/id091/test/in
FILENAME=*.zip
#
cd $SOURCEDIR
chmod 777 $FILENAME
unzip * -d $TARGETDIR
rm -f $FILENAME
#
exit 0
Could you please let me know what is the issue here?
Hi Raghuraman,
As discussed earlier, when I use Payload zip module I am not able to get 2 separate files on NFS, and in unzipped file content is somewhat distorted. Basically my source file will be one zip and it will contain n number of PDF and XML files, so I need to have them on NFS as a separate entity each.
Rahul,
Refer the below discussion(same requirement as yours I believe).
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.