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
I have updated a WebHelp project for a Windows app (let's call it App1). Now the Dev team is creating a separately installed app (lets call it App2) that shares some of the same Help information as the original app. Both apps can be installed on the [More]
On launching Bridge, I an consistently receiving the following error. "There were problems loading a startup script the last time bridge was launched. Would you like to load them now?" Clicking [Yes] produces the following error: An error occurr [More]
Using a French keyboard, how can one access the bracket keys on a Macbook Pro in order to change brush sizes. The usual shift-option-( to get the bracket keys does not work, at least for me. I'm on 10.5.4. Thanks.Under Edit  Keyboard Shortcuts  Tools [More]
I got my Ipod from a man and now im trying to factory rest my phone but he has a security pass code on it to where i cant get to the reset. I asked him for the code for it but he doesnt even know it himself, is there another way i can factory reset m [More]
Hi, We've published InfoPath forms in document library 'A' and used default "ID" field of SharePoint to generate Request IDs for tickets. As we add consequent documents(items) in library 'A', 'ID' is getting incremented properly i.e. 801, 802, 8 [More]
Anyone know of a free application for my iMac so I can convert?As far as converting the file to something you can use with another application, make sure the video you are watching has no copyright restrictions first. If it doesn't, SnapZ Pro lets yo [More]
I've had this issue for a couple days now. When in firefox and having multiple tabs open, the tab that I am on will freeze and an "unresponsive script" message will come up. When I only have one tab open, the browser will shut down completely wi [More]
     I purchased a video and it keeps telling me "cannot download at this time" but it has been charged on my itunes cardI have the sameRead other 2 answers [More]
Sir, ply help me in developing a workflow for as soon as PR is released it should be intimated to purchase. how can i configure this regards ameyHi, WS20000077 this std. Workflow for the PR Release this has multiple levels of approvals, Depends on th [More]
After using iTunes match with iTunes on Windows, I've decided that I wanted to have full control of what is synced to my iPhone4 and disabled iTunes Match on the iPhone. I'm using a secondary iTunes library on my PC now to sync with the phone while I [More]