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
How do i connect my macbook pro to my tv wirelessly? I have MacBoock Pro 13 inch OS X 10.6.8 and Samsung LED 8000 seriesThanks for your reply. I am able to print wirelessly through my MacBoock Pro My TV discover other devices PC etc but not my MacRea [More]
Hi, I'm loading data into the 0FIGL_O02 DSO. I'm using an Initialization infopackage. The QM status in the monitor for the infopackage is green and I can see the data in the PSA. When I try to activate the DSO the QM status under DSO>Manage goes red [More]
I have a MacBook While 13', Early 2009 Model [ http://support.apple.com/kb/SP504 ] I was using Leopard till date, but now want to upgrade to Snow Leopard. I read technical specifications for Snow Leopard, and it says that 64-bit support is available [More]
Am I missing something obvious -- or is there no way to get the "to dos" list from ical to the iphone mmmcoffee, you're right, "to do's" has not been implemented in the iPhone version of iCal yet. I'm guessing it'll be available in a f [More]
If anyone wants to try it/use it, I've got a working Glossary tab for OHJ. You'll need OHJ 4.2.1 to use it. It's designed to read and display simple text glossary entries from an XML file (coincidentally, this is the same glossary XML output format g [More]
Hi All, I have successfully installed the Oracle BPEL Process Manager with the BEA WebLogic Server 10. But during startup of the oracleBPELServer server from weblogic console I get the following exception! So I included the jsafeFIPS.jar in "server s [More]
Hi all, scenario: We are locking some objects in ERP via RFC. (ENQUEUE_EVVBAKE) Now i want to unlock the objects within a user exit but the fm DEQUEUE_EVVBAKE is not running successfully. I know why (different mode)!!! Is there a possibility to delet [More]
Hi All,            I have created BSP pages with flow logic. I have the following pages : main.htm selection.htm details.htm I have embedded selection.htm and details.htm  in main.htm In selection.htm page I have button .On clicking this button, it o [More]
Hi I want to know that is it possible to create dynamic reports using netbeans? Dynamic reports means based on user selection(for eg. say by selecting values from combo boxes) some query will be genatated and fetch the query result from data base and [More]
Hi, I am looking for the definition by which the number of users are classified by activity if you want an overview by month in transaction ST03. > In expert mode > workload > selecting a month > in workload overview select the tab "user& [More]