Problem with zip operating system command

Hello,
i have the following configuration in the file receiver adapter:
Directory: /tmp/
File Name Scheme: %name%.txt
Variable substitution:
Variable Name: name                 Reference: payload: record,1,name,1
Run Operating system command:
/usr/bin/zip /tmp/%f.zip %F
The execution is succesful, but i have a small problem. The file name is "file.txt.zip", the .txt should appear but i dont know how to skip it, I have tried so many ways but it doesnt work, I should receive a file called "file.zip" With a file inside in txt format...
Thanks,
Luis

Hi Sriram,
Thanks, but that wouldnt work out, Im using the %f for my file name, so this move command shouldnt work for me, because my filename changes in every execution, so I cant write something like this: mv file.txt.zip file.zip
The only solution I see would would be a command which deals with strings and that could remove the four last characters of "%f"..but I havent found anything for doing it.
Regards,
Luis

Similar Messages

  • JAR file problem with windows operating system rare

    hi,
    I have an application created with Eclipse 3.2, which also have a plugin that helps me to create jar files, migrate days ago all my application and my data base to a notebook that has a very rare operating system is Windows Vista, but is a version very rare and never seen, called oneAngel Illusion, and I think that that is not capable of running the JAR correctly, that when you double click or enter to JAR nothing happens, and I prove it on a machine that has XP and functioning properly.
    I hope I can help with this!

    pg_shadow wrote:
    hi,
    I have an application created with Eclipse 3.2, which also have a plugin that helps me to create jar files, migrate days ago all my application and my data base to a notebook that has a very rare operating system is Windows Vista, but is a version very rare and never seen, called oneAngel Illusion, and I think that that is not capable of running the JAR correctly, that when you double click or enter to JAR nothing happens, and I prove it on a machine that has XP and functioning properly.
    I hope I can help with this!You should know, if you don't already, that your 'super rare' version of Windows Vista, sounds like one of numerous, illegal, cracked and knocked-off versions of Vista that have been floating about. Things like Windows Vista Silver and Windows Vista Sky are not only completely illegal reproductions of pirated copies of Vista but they often have terrible bugs and security deficiencies that can sacrifice the integrity of your data. Honestly, if you're already shooting yourself in the foot with this bootlegged operating system, just get Linux, it's just like stealing but without the unsavory prison shower encounters.

  • Problem With mac Operating system

    ok, had a problem with a piece of software and was told to try and "downgrade" my OS. so i started an installer that was an installer to a previous system. i was on 4.8 and was trying to go to 3.4 i think. I got half way thru and it said start the installer again. restarted. instead of the apple logo coming up a round cross comes up. i connected to my comp thru another comp using the firewire but my user folder is empty. anyways i can find anything in the users folder and fix this problem? cheers

    Who told you to downgrade your OS X version and was this due to the software not being compatible with your OS X version which was 10.4.8?
    What software?
    Your computer detail provided indicates you have an Intel Mac and if so, you certainly cannot downgrade to 10.3 - any 10.3.x version. All Intel Macs have shipped with Tiger (10.4.x) pre-installed and there are no OS X versions prior to 10.4.x that is compatible with an Intel Mac and even if so, you cannot install an earlier or previous OS X version on a Mac that shipped with a later version.
    Unless you meant 10.4.3 which is the version that was pre-installed on your Intel Mac and the version included with the OS X install package that shipped with your Mac when new.
    Did this person who told you to downgrade your OS also tell you to be sure to create a backup or update your existing backup before doing so?
    Did you choose Archive & Install with an option to preserve user and network settings?
    If not and you choose Erase & Install, then your hard drive was completely erased first.

  • Problems with New operating system

    I am using iphone 4s since i updated new operating system my phone unable to connect wifi autometically becomes very slow not supporting apps and its rebooting autometically.

    Try Settings > General > Reset > Reset All Settings.

  • Security Problems with new operating system (5.1)

    Using the new operating system you can use the camera when the ipod is locked. When you do this it overides the 4 digit security code giving full access to your ipod without entering the code. Surely this should not happen as the security of your ipod or iphone should not be compromised in this way. It needs a fix. Anyone else noticed this?

    Are you sure you are just not trying to access the iPod before the time you set the screen-lock to engage has passed?
    If the time period is set for say one minute and then you tell the iPod to sleep, you can still access the camera and then the whole iPod. But you can simply do that anywhap by jus sliging to to unloack.  If the time period has not passed you do not need to enter your passcode.  Othr users have forgot this and raised the same issue as you.

  • Problem with 2nd operating system

    Hello,
    I have a near new probook.
    When purchased,  I upgraded the hard drive.
    I still have the original hd with win7 pro installed on it.
    My problem is,  when I put the original hd into the probook it starts etc but, everything is magnifed and pixelated.
    I hope you understand what I mean. I can probably upload a screenshot if needed.
    Can anyone offer me some advice?
    Kind regards.

    stevohp wrote:
    Hello,
    I have a near new probook.
    When purchased,  I upgraded the hard drive.
    I still have the original hd with win7 pro installed on it.
    My problem is,  when I put the original hd into the probook it starts etc but, everything is magnifed and pixelated.
    I hope you understand what I mean. I can probably upload a screenshot if needed.
    Can anyone offer me some advice?
    Kind regards.
    That sounds more like a video problem then a hard drive problem....
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • Is there a problem with the operating system when downloading Rapport

    I have downloaded Rapport onto my iMac and now my computer will not stay logged in. I can sign in to my user account but it just logs out about 20 seconds later.

    Hi Elite idiot,
    We’re sorry you experienced issues with Rapport. Our Technical Support Team is available 24/7 via mail or live chat and would be happy to assist you with any difficulty you encounter. Please contact us at http://www.trusteer.com/support/submit-ticket
    Ayala,
    Trusteer Technical Support

  • Operating system command to zip the file

    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 operating system command to create the zip file in reciever side.
    Kind Regards,
    Praveen.

    Hi Praveen,
    >>Can anyone please give me the operating system command to create the zip file in reciever side.
    Why OS commands and not the PayloadZipModule?
    If you need OS commands check this blog of Michal /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Update
    You can try this command too
    cmd /C "jar cMf \\<folderpath>test1.zip \\<folderpath>*.*"
    Regards
    Suraj

  • Problem in execution of Operating System Command

    Hi
    I am trying <b>OS command in Reciever File Adapter</b> but the command is not executing.In my scenario i am creating a file by reciever adapter and then this OS command will delete,rename..etc to this file.For this i had created a <b>Batch file</b> in which i had given OS commands, so once this batch file will execute the command should work.File is getting created but OS command is not executing.I am giving the command in the adapter as follows:
    <b>//Server-name/directory/Test.bat</b>
    i had tried giving command like this also
    <b>D:\directory\Test.bat</b>
    but there is no result.i read somewhere that this function works on SP9 or above.We are also working on SP9 but.....
    Do i have to make some settings for this function.
    If you have some solution then please help me.
    Thanx in advance.
    Regards
    Arpit Seth

    Hi,
    In help.sap.com (http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm), it is given as
    When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
    · %f (file name)
    · %F(absolute file name including path)
    Are you using like this?
    rgds,
    Sasi

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

    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

    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.

  • Operating System Command After File Processing in Sender File Adapter

    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 have the problem that we sould maintain an order processing files.
    We thougth that an idea could be to execute one file pointing to D:/DPI and at the Operating System Command put like: copy D:/DPI/file.txt D:/DPI/outbound/file.txt, so when file is executed, we move the next file to another directory where is pointing the adapter. Doing this we have an error on the adapter giving us the message: Could not process due to error: java.lang.NullPointerException
    We are using a Windows.
    There is anyway to do in our way, or there is a better solution to resolve this problem?
    Any other idea to do this?
    Many thanks in advance.
    Regards,
    Xavi.

    Helo Guys,
    maybe I haven't explained well.
    We have one directory with different files. We have one adapter for every file( we need for the content conversion ) using NFS and all the adapters are pointing to the same directory.
    The problem is that if we have files A.txt, B.txt and C.txt we need to process in an order.
    And the problem we see is that for every file we have one adapter, so for example if we process file A.txt with one adapter, when this part is finished, we want to process file B.txt with another adapter, and the same for the rest of the files.
    So the idea we had is to create another directories, and when A.txt has finished move file B.txt to another directory.
    However this way is not running, if we log on the PI machine and execute cmd, we can do a copy of one file from one directory to another, but when we put this sentence in the adapter in OS command if we see the adapter log we see an error executing the OS command, but we don't know what is the error, there is no more information.
    There is any way to do this or maybe we have to manage in a different way?
    Many thanks in advance.
    Regards,
    Xavi.

  • Run Operating Systems command.

    Hi Experts,
    Please provide information on Run Operating Systems commands for File adapter.
    I have gone through t he below mentioned link already:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm]
    Also , please provide links for OS commands whch can be used for windows OS.
    thanks,
    Neha

    Hi Neha,
    pls do chk this linkfor windows OS commands
    http://webtools.live2support.com/windows/
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
    An interesting usage of Variable Substitution in XI
    Solution to the problem encountered using Variable Substitution with XI-SP12
    Copy a file with same filename using XI
    thanx
    Sampath
    Edited by: venkata sampath on Jul 8, 2008 7:20 AM

  • Vista: use the windows program manager to execute operating system commands

    attempting to run forms 6 on vista... the forms app attempts a call sqlplus using the host builtin to populate some tables before calling the report.
    in windows vista i get a message box indicating "use the windows program manager to execute operating system commands".
    is this windwos vista message? would this have to do with permissions?
    any insight most appreciated and thanks in advance.

    I don't know about the HOST-problem, but..
    the forms app attempts a call sqlplus using the host builtin to populate some tables before calling the report.What about putting the logic from the SQL*Plus-scripts into a database-procedure and call that instead. I think,, with the current approach you will get problems at least when you have to migrate to Web (e.g. Forms 10g).

  • How to use Operating System Commands while using define in sqlplus

    How to use Operating System Commands while using define in sqlplus . The Host OS is Linux
    define report_name=PROD_${host date "+%b"}.html
    The above is not working.
    The output should be 
    define report_name=PROD_JAN.html
    Regards,
    DB

    of course I was talking nonsense: the problem here is the mixing of bind variables and DEFINE variables.
    With the following changes the script should work (the conditions for begin_interval_time are perhaps not what you want):
    variable snap1 number
    variable snap2 number
    variable rptname varchar2(20)
    begin
    SELECT min(snap_id) into :snap1 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    SELECT max(snap_id) into :snap2 FROM dba_hist_snapshot WHERE CAST(begin_interval_time AS DATE) >= SYSDATE-1;
    end;
    col file_name_value new_value report_name noprint
    select 'PROD_'|| to_char(sysdate,'MON') || '_' ||  to_char(sysdate,'DD') file_name_value  from dual;
    define  report_type  = 'html'
    define num_days=2
    define begin_snap=:snap1
    define end_snap=:snap2
    @@?/rdbms/admin/awrrpt.sql

  • Calling Operating System Commands from PL/SQL using java

    Calling Operating System Commands from PL/SQL - The Java Way
    wlth help of given thread link,
    Calling OS Commands from Plsql
    but i had user privilege problem
    Declare
    x Varchar2(2000);
    Begin
    x := OSCommand_Run('/tmp/sri/GROUP_ho.sh');
    DBMS_OUTPUT.Put_Line(x);
    End;
    o/p;
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    i done the grant privillage also
    part
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission('
    abcd', 'SYS:java.io.FilePermission','<<ALL FILES>>', 'execute');
    again
    get
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    same error;

    Process management at the OS level should prevent execution continuing in the calling code until the command has completed (either successfully or with error).
    If the low level java code were to spawn child process threads then execution could continue, but I'm guessing the Java function your talking about doesn't do that and just calls the operating system to execute the command and waits for the returning code to come back.

Maybe you are looking for

  • How can you get a calendar back after deleting it

    How can you get a calendar back after deleting it

  • Telnet error when trying to connect to linksys wag120n router

    typing in cmd "telnet 192.168.1.1" gives me this error "could not open connection to the host on port 23". I tried this same command on my old router and it worked just fine. so it has to be the router right? what settings should I change on my pc or

  • Concept of pointer on cluster

    Hi!   According to my understanding, if I want to know the pointer of a array, I just need to know the pointer of the first element of this array, and then the subsequent element's pointer follows. What about a cluster? Is it the same case?   I am as

  • Files locking/inaccesible when copied to a Server

    Hi Guys I have seen many responses to similar posts, mine is slightly different. Folder on a server has the Red Circle with the No Access Line through it. I cannot change the permission to Read and Write, cannot add another user or group. Cannot acce

  • Lenova ideapad yoga 11s

    i probably wont be able to explain this properly but i will try my best else i will be going to contact lenova via hte phone. For some reason i cannot launch anything on my lenova ideapad yoga 11 s. for instance i click on the internet explorer icon