Sitemap

Amicuk Programming Answers

Unzip file using operating system command in file/ftp receiver adapter

2015-10-11   Views:1

Advertisement

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter

Hi,
I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix).
The command I entered is quite simple: unzip %F (also tried the %f, but i guess it doesn't really matter wich on I use).
Is it possible that I'm unzipping to another directory than the one i expect? the unzip should be performed to/in the current directory, and assumingly current directory is the one stated in the 'Target Directory', right?
Hope someone can clearify this issue for me.
Best regards,
Daniel

The replay answer
Advertisement
Hi Daniel,
It seems to me also, that the files are being unzipped to a different location than what you are expecting. The OS command might getting executed in some default location(i am trying to fnd that out)on the server and not in the target directory of the channel(It seems logical to me)....
If you have time...pls try this out & see whether this would help...
Have a shell script written with the following commands in them
cd <path to target directory>
unzip $1(filename from the channel)
and in the OS command in the Channel give....
<absolute path to the .sh file> %F
Thanks,
Renjith.

Go to See the other 6 answers

Unzip file using operating system command in file/ftp receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter[More]

Filename for flat file using J2EE FILE FTP Receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi there, I am struggling to do the following: I have a J2EE File receiver that sends a file with a specific name to a FTP destination. I define the target filename in my graphical mapping using certain criteria and a incremental number. In my adapte[More]

Operating system command in file adaptor

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big[More]

Operating system command in file receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to use the Run Operating system command after message processing option in the parameters tab of the file receiver adapter. I am working on a scenario wherein a batch file needs to be invoked after the file is written on the file system. So h[More]

File Adapter 7.11 - set operating system command line dynamically

Category:DefaultRelease time:2015-10-11Views:130

Hi, is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute? I need to set  a command line exec depending on some XSL mapping values. thx holgerhi, >>>is there any way to set the "[More]

File Receiver Adapter:Run Operating System COmmand after message Processig:

Category:DefaultRelease time:2015-10-11Views:130

Dear All, I have gone through this link [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] But i have a problem. In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF I want to call th[More]

Operating System Command After File Processing in Sender File Adapter

Category:DefaultRelease time:2015-10-11Views:130

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we[More]

Run operating system command for sender File adpter (NFS)

Category:DefaultRelease time:2015-10-11Views:130

Hi All, iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed). I mention OS command like this: sample_server\scripts\Test\Rename.bat" Rename.[More]

Unable to run a Batch File Operating System Command

Category:DefaultRelease time:2015-10-11Views:130

Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing. My Batch file: gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin My Command Line (ID scenario) exec "cmd.exe /c C:\Progra[More]

Is it possible to call operating system command after file receive?

Category:DefaultRelease time:2015-10-11Views:130

Hi expert, I'm trying to call operating system command after file receive comm.channel receive a txt file. operating system command uses txt file name as parameter. Is it possible? How? Thanks.Hi, It should be possible, actually we have two options t[More]

Operating system command to zip the file

Category:DefaultRelease time:2015-10-11Views:130

Hi Experts, I got proxy to file scenario, i can place the text file successfully in reciever side, i want to zip the file in reciever side using operating system command option in reciever Communication Channel. Can anyone please give me the operatin[More]

Hot
Hi my name is Max, when I try to try the Flash Proffesional CC and Mobile Device Packaging It just saids: Installation failed - Learn More And when I click Learn More this comes: Download error. Unable to reach Adobe servers. Please check your intern [More]
Hi, I am working on files that are very large and when such a file fails with some error ,it becomes very difficult to track exactly for which record it is failing. For example if the file has 6000 records and the problem is at 641st record,it takes [More]
Hi I was trying to open my credit card statement on my Android Galaxy S2 I9100 phone. Although it looks like that the Adobe reader 10.0.2 version (Build 40862) is capable of opening  Password protected files but I got an error "The document cannot be [More]
I am new to Mac and love it. I would like to transfer my old mini-DV tapes from Panasonic NV-GS120 to my MacBook Pro via FireWire port (9-pin), but am not sure which port to use on the video camera. Reading from the top on the Panasonic video camera [More]
I'm new to RoboHelp and to HTML altogether, but learning quickly. I'm developing a help system with both General help and How to's. I was wondering if it possible to add automatic insertions in a RoboHelp HTML 7 template, as you would in a Word .dot [More]
Hi, We are trying to extract data from Solman 7 to BI 7. The following extractors have been activated on Solman since we want to be able to report CCMS ALERTS and System availability on Bi Portal. Transaction SPRO -> SAP Reference IMG -> SAP Solutio [More]
Hi Experts,                 My Smartform should print multiple customer's data and should generate a single spool,wherein the multiple customers have different languages.When I run the loop with the FM calling the language in a control parameter,I ca [More]
Hi All, I have one doubt in Oracle essbase study guides I found that Only 'Text atrributes are supported in planning databases' but in planning work space I am able to create text,numeric,boolean and date types of attribute and able to use manage dat [More]
My customer has asked me a question if we can setup up SRM in such way that external vendor will be able to create SC (instead of employee). Business case: Vendors are obliged with contract to prepare certain work. They now what is needed to deliver [More]
In iTunes there is a command to "show song file" is this possible in iPhoto? Also, in 5.04 when I am browsing an album "duplicate" is greyed out. I need to go back top the library to duplicate the image. but in the library of 8000+ ima [More]