Arguements in file.execute

Hello,
Is there a way to know in outbound file adapter what was the name of the file just written when using file.execute command? (i.e. when using timestamp/counter/etc.)
so it be possible for example to execute a command like:
cmd /c copy %1 \some_directory
or
cmd /c echo %1 completed successfully >> successlist.txt
etc.
Cheers

Hi friends...
thanx for your quick responses..
As you suggested..
i put source xml as
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Units xmlns:ns0="http://aaaa.com/xi/PROCESS/PPE/ERP_MES">
   <id>70013</id>
   <date>20060101</date>
   <value>3333</value>
</ns0:MT_Units>
and i am getting same error in SXMB_MONI.
but payload as
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/ram/Local Se...
<?xml version="1.0" encoding="UTF-8"?>
^
and in adaptermonitering ..file is picking and it showing the message content as
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://...
<?xml version="1.0" encoding="UTF-8"?>
^
please help me...
regards
ram

Similar Messages

  • Where is localize source file executed when sqlplus start?

    Hi,
    I need to add some parameters to my sqlplus when it start, but I don't remember where is located file executed during start sql console.
    I try find in internet, but without result..
    Furthermore, is there any file which are execute when sqlplus is closed?
    Best.

    tutus wrote:
    Yes, of course you have right - there aren't any reason. But I wonder if file won't be empty after incorrectly end spool command..
    Despite, thank you for help.What's keeping you from testing it for yourself? You could have done that in 1/4 the time you have spent on this thread. What you really need to consider is the effect of SPOOL commands that are issued by the user or scripts the user runs in the session.

  • Download complete binery file executed but still showing old version of start page

    I have been having this problem for a while, I update with the newer version of Mozilla firefox, 9.0.1 executable file, download the file, execute the binery file, run the update, when all is complete firefox asks to open the start page and the old firefox start page is still showing telling me that my version is no longer supported by google

    If you have install 9.0.1 version, you have useragent problem, because your useragent tell us that you have 3.5.5 version (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/'''3.5.5''' ).
    check the version in '''Help''' then '''About firefox''', if you have 9.0.1 see how to fix user agent: in [https://support.mozilla.org/en-US/kb/Websites%20or%20add-ons%20incorrectly%20report%20incompatible%20browser Websites or add-ons incorrectly report incompatible browser ] find '''Reset your user agent''' and follow the steps.
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Issue with file.execute()

    Hi, i recently started learning photoshop scripts, i have a .bat file that needs to run at the end of java script, while looking for help online, the only hel was
    var bat = new File("path\fileName.bat");
    bat.execute();
    but nothing happens when i run this script, or even if i try to wtire into a .bat file, nothing happens, it looks like, the file operations are not working and i might be missing something. Can some one please help me solve this issue?
    im using photoshop CS6, windows7 and working on Java script.
    Thank you in advance

    Looks like your Oracle can't access the directory you are using. If you don't specify a directory data pump will use DATA_PUMP_DIR:
    C:\Documents and Settings\User>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 8 18:44:52 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    SQL> select * from all_directories where directory_name = 'DATA_PUMP_DIR';
    OWNER                          DIRECTORY_NAME
    DIRECTORY_PATH
    SYS                            DATA_PUMP_DIR
    C:\Oracle\admin\pts\dpdump\
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Production
    C:\Documents and Settings\User>move C:\Oracle\admin\pts\dpdump C:\Oracle\admin\pts\dpdump_oops
            1 file(s) moved.
    C:\Documents and Settings\User>expdp andy/andy
    Export: Release 10.2.0.1.0 - Production on Saturday, 08 May, 2010 18:44:30
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.1.0 - Production
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 475
    ORA-29283: invalid file operationFor data pump you need priveleges to a directory on the Oracle server that Oracle has access to.
    UTL_FILE you can either use a directory or utl_file_dir.
    Edited by: Andy Klock on May 8, 2010 3:54 PM

  • How to make .jar files executable by double clicking

    hi,
    I've been trying to make my .jar file created via ANT Tool executable by double clicking it but I'm not being successfull. I looked at the ANT Tool for making manifest.mf and I included most of the attributes listed there and later found that Main-Class attribute is required but its not mentioned in the documentation.
    So, I'll be very greatful to receive any suggestions
    regards,
    Jay

    ya I've been doing things the same way mentioned there but it isn't working. here is the code for it:
    //All the .class files are in the build directory and the class files are under the package org.home.proj.
    <!-- For making .jar files -->
    <target name="jar" depends="compile" description="Makes CyberStation.jar from the CyberStation code.">
        <mkdir dir="${bin}" />
        <jar jarfile="${bin}/CyberStation.jar" basedir="${build}">
          <exclude name="**/run.bat" />
            <manifest>
           <attribute name="Buily-By" value="${user.name}" />
           <attribute name="Main-Class" value="org.home.proj.CyberSoft" />
             <section name="org/home/proj/CyberSoft.class">
               <attribute name="Sealed" value="false" />
             </section>
         </manifest>
        </jar>
      </target>It show the error: Could not find the main class. The program will exit.
    regards,
    Jay

  • File.execute() not working for bat file

    Dear all,
    The purpose of my function copyToWinClipboard (text) is to get a string directly into the Windows Clipboard. The purpose is to allow the user of my project just to paste into the open-dialog of the application EndNote. I’m not certain whether the FM clipboard (supported by the copy/cut/paste methods for Doc) really fills into the Windows Clipboard also.
    In the PhotoShop script forum I found the idea how to do this.
    #target framemaker
    // note the blank in the path
    copyToWinClipboard ("E:\\_DDDprojects\\FM+EN escript\\FM-11-testfiles\\BibFM-collected.rtf");
    function copyToWinClipboard (text) {
      var theCmd, clipFile = new File(Folder.temp + "\\ClipBoardW.bat");
      clipFile.open('w');
    //  theCmd = "echo \"" + text + "\" | clip"; // this doesn’t help either
      theCmd = "echo " + text + " | clip";
      clipFile.writeln (theCmd);
      clipFile.close ();
      clipFile.execute ();
    Running this script provides a short flicker (the command prompt), but the clipboard does not contain the expected string. However, when double clicking on the generated I:\!_temp\ClipBoardW.bat the clipboard is filled correctly.
    IMHO the execute method does not work correctly for bat files. In another area of my project-script i run an exe file with this method correctly.

    Hi Klaus,
    sorry for my late response.
    execute definitely works witch batch-files
    Here's a "batch" - example you can test.
    There are two methods to prevent window from closing:
    "|more" - kind of pagebreak
    "pause"
    var oTemp = app.UserSettingsDir + "\\tmp";
        var MyDosCommand = "ipconfig.exe /a|more";
        var MyPath = new Folder (oTemp);
        if (!oTemp.exists)
            var MyPath = new Folder (oTemp);
            var lFehler = MyPath.create();
        oTemp = oTemp + "\\" +"nw.bat";
        var MyFile = new File (oTemp);
             MyFile.open ('w');
               if (MyFile.error > "")
                    alert("ERROR");
            MyFile.writeln(MyDosCommand);
            MyFile.writeln("pause");
            MyFile.close();
            MyFile.execute();

  • Bat file execute all *.sql files in a folder

    Hi all,
    How to write a *.bat file to execute all *.sql files in a folder?
    Because have about 20 *.sql file in a folder. There are used to fix data in my database. The number of *.sql file increases day by day. So I want to write a *.bat file to execute all *.sql file in the folder. Since I just run this *.bat file.
    Mai Thanh Hải.

    user545846 wrote:
    Hi
    I have done this many times. can guide you. :)And did it fail to work all the times you tried it?
    c:\>type test1.sql
    select 1 from dual;
    exit
    c:\>type test2.sql
    select 2 from dual;
    exit
    c:\>sqlplus scott/tiger@testdb @c:\test*.sql
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Aug 6 12:37:04 2009
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SP2-0556: Invalid file name.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining optionsWildcards in SQL*Plus filenames don't work. So why do you suggest that?
    Better is to use the DOS command FOR...
    c:\>for %i in (test*.sql) do sqlplus scott/tiger@testdb @%i
    c:\>sqlplus scott/tiger@testdb @test1.sql
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Aug 6 12:38:06 2009
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
             1
             1
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    c:\>sqlplus scott/tiger@testdb @test2.sql
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Aug 6 12:38:06 2009
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
             2
             2
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    c:\>... although even better would be to proceduralise the SQL into packages/procedures on the database and have just a single procedure call do all the work.

  • How to get .sitx file execute.

    Hi, I got a question about the downloaded software Windows Media 9.0 as .sitx file. Once execute the file, OS always prompt me "choose application". meahwhile, downloaded .wmv files how to open it ? Thanks..

    Hi,
    have you expanded the sitx file with StuffIt Expander ?
    Volker

  • Setting file execute permissions--a somewhat arcane question.

    As I've been learning Unix, I'm often impressed by the logic and efficiency of certain features, so when I find things that don't fit this pattern, it really makes me wonder.
    This particular example isn't so much about the design of permissions as it is about the way administrators--even competent ones--use them.
    A case in point:
    -rwxr-xr-x 1 root wheel 5099 Dec 7 2006 /usr/sbin/apachectl
    This means that the file belongs to root, and root can do anything (s)he wants to it--read, write and execute.
    Furthermore, anyone who belongs to the group, wheel (which, correct me if I'm wrong here, is pretty generally confined to root) can read and execute it. They can't write to it because, presumably, you don't want just any old wheel coming along and changing this file, although they may read it, which might be a good thing to do before they execute it.
    Finally, other, that is, any old user, can execute the file, but they can't write to it, and they can't even read it. (Incidentally, why would you want to prevent someone from reading a file that you're allowing them to execute? Element of surprise? But that's not my real question.)
    My real question involves the following: try logging on as anyone other than root and running that file. If Apache is running, try to stop it. It will tell you it isn't running. That's a lie. Okay, maybe an honest mistake, but it isn't true. Now try to start it. It doesn't have to be stopped; you'll get the same error either way: "fopen: Permission denied," it says, "httpd: could not open error log file /private/var/log/httpd/error_log."
    I seem to run into this a lot. A file that I have permission to execute produces an error message when I try to run it because it tries to do something that I don't have permission to do. So why do I have permission to execute the file in the first place?
    Okay, maybe there are some useful things I can do with apachectl, like configtest, that don't require me to be root. Like if I'm editing the httpd.conf file, I can check it with configtest, and then when it's ready I can go get an administrator to restart apache, or something like that. Except for the fact that I can't edit httpd.conf because I only have read access to that file. But maybe there are some imaginable scenarios where it might make sense.
    But there are other files that you simply can't do a darned thing with, yet which still allow you to execute them and be chastised for your lowly permission status. Not only that, but it's a relatively simple matter to construct a script in such a way that it will check to see who is executing it, while it's processing directives, and return an appropriate error message, e.g. "Sorry, 'stop' and 'start' can only be performed by root," instead of allowing some downstream process to do its dirty work. Incidentally, allowing errors to be returned from downstream processes gives unprivileged users some insight into what the script does, which, presumably, is part of what they're trying to prevent by not allowing them to read the script!
    If anyone can shed any light on why things are so often done this way, I'd appreciate it. If not, I guess this is just my Unix rant for the the week.
    Disclaimer: I don't hate Unix. I really like it a lot, in spite of its quirks. No one is perfect; not even me! And don't even get me started on "Windows."

    David Livesay wrote:
    Perhaps you just don't know all the details of that particular application.
    Please fill me in on the details I'm missing. That's why I posted this question.
    I will try. But it is easier to explain why "programs in general" behave a certain way than why a "particular" program might behave a certain way. In particulars, I'm likely to be wrong. In generalities, I'll be more correct.
    The default log location is in a directory that you cannot write to. However, this doesn't have to be the case. It could be anywhere.
    Yes, and the permissions could be anything, but for the current location, the permissions don't make sense. You should always write a script for the situation that exists, assuming anyone who had a reason to move the log file would also have permission to change the file permissions accordingly. It doesn't make sense to set permissions according to what someone might do at some future time.
    Sure it does. To use your apachectl example, Apache can be setup to put its log files anywhere on the system. It can be setup to use any particular user. It is one of the most configurable programs there is. It is "owned" by root so that it can't be messed with. It is "run" by nobody or www, so that, if it is compromised, it won't cause (much) damage. On Unix, there is no way to specify that a program is owned by one particular user and run by another particular user (well, maybe with ACL). For this program, the executable could be owned by www, but, since that user is configurable, that wouldn't make any sense. Plus, user ids are specific to each machine, only root is always uid 0. Plus, it is common practice for various reasons to start up as one user and either promote/demote to a different user. Plus, there are at least a dozen other process and daemon specific details that I'm ignoring. I'm trying to make it as short and sweet as possible.
    There are only a few programs that only root should be able to run.
    Please elaborate. Would this include apachectl in your view? If not, what reason would someone else have for running it when it is just going to fail? And remember, if you're going to say they can move the log file, I'm going to reassert that if they can do that then they can change the permissions accordingly.
    I don't know the low-level details about apachectl in particular. Usually, any daemon or daemon related program can only be started by root, but is actually run as a different user. And while I say "only", that is not true. It is more correct to say "should". Everything is configurable! I might want to test out Apache 3.0, for example. I will have it configured to run as a regular user instead of root, because I am debugging it.
    Usually, it is only very low-level, hardware programs (like fsck) that can only be run as root.
    Many have world execute permission explicitly so anyone can run it. That anyone may be a user who have no privileges at all (such as nobody or www) so that if something it gets hacked, the script kiddie only gets access to nobody's files. Usually, that "anyone" is one of these specific users. That log file is probably owned by and is restricted to that user.
    I don't quite follow you. If "anyone" can run it, that would include root. If someone is trying to hack a system, and can choose whether to run a script as root or an impotent user, why would they choose to run it as an impotent user? If they can only do damage by running a given executable as root, they're going to run it as root, whether or not anyone else has permission to run it.
    You can't choose who to run a program as (unless you are root). A program is owned by whomever owns it. It is run by whomever is logged in. Apache, for example, runs "as" www. If hacked, all they can do is deface your web page, they can't bring down the server or compromise it in any other way. That is also why you shouln't even have root enabled on your system and why you should say in su or sudo mode for very long.

  • Jar File executes without the CLASSPATH being set???

    Hello all:
    I have been writing an application with JBuilder 4.0 Professional. I have finished the program and then let JBuilder create a JAR file. About the first 5 times I created the JAR file, I could never get it to execute from the command line. However, the last time I created the JAR file, I doubled clicked on it and it executed by using javaw. I had the CLASSPATH pointing to the file. I later removed the CLASSPATH variable, and the JAR file still executed. My MANIFEST.MF file includes the package name(not classpath) and the main class(which contains the public static void main method).
    I installed the JAR file and the JRE on another computer and it would not work. Can anyone give me some information??? Thanks in advance.

    probably this is due to the fact on your windows explorer under view - options, File Types tab you have the executable jar file pointing to a jdk.
    click on Executable Jar File and click edit then click on open in the Actions box (if this isn't here then this isn't the reason, sorry) and click edit. a pop up will appear with the java exe path - this is what the app is running from.
    gaz

  • Can I make my class files executables on Windows platform?

    I have got a very interesting java program, which I have already compiled into a class file. What I want to do now is to make the bytecodes into an executable file on Windows, like any other .exe files. If possible, how do I do that? Will anyone be able to help me with the question?
    Thanks a lot in advance.

    hi,
    you can do it within a jar-file (don't ask me how, but its possible to execute jars)
    or you write a c/c++-program, which will launch you jar
    regards

  • Should deployed class files execute permission should be 755?

    im getting the following error
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.ClassFormatError: adb/oracle/apps/xxtra/gtl/webui/XxtraGtlInquiryCO (Illegal constant pool type)

    Although there should be execute permissions on the class file, this issue is not because of file permission.
    There is a JDK bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4165020) for applet classloader.
    For us (since we are not trying to load an applet codebase), this could also be due to corrupted class file.
    upload the file in binary mode , bounce server and retry.
    Tapash

  • Alternative to ALL FILES execute permission

    Hello!
    I'm working on a Java Stored Procedure which executes an external Java program. In development environment all is ok, it's working.
    Now it's time to put into production environment, but the required FilePermission to ALL FILES it's too much broad. My question is if is there an alternative to this permission to make external execute calls to work.
    Thank you in advance,
    Eva.

    Hello,
    It must be possible to grant FilePermission only to external files (scripts, commands) that you are invoking.
    See my article on OracleJVM security mechanisms for more on security http://www.oracle.com/technology/oramag/oracle/03-jul/o43devjvm.html
    Kuassi, http://db360.blogspot.com/

  • How do you change a java program to a single file executable file?

    Hey guys I'm back with another new to java question :)
    i would like to have my java program that i made into an executable single file,
    i currently have my project compressed into a JAR file,
    and its working fine when i go click on it in the file that its in, it works fine but it has to be in that file to work... :(, i was wondering is there a way that i can have that file on its own to work, so that i can send it to someone and they just have to have that one file.
    thanks for the help

    If you want a jar file to behave the same way no matter what directory it is in (or is run from) then you have to make sure that all resources it uses are included in the jar. Such resources could include images and sounds that the application uses. Or files that it references.
    For instance thisFile foo = new File("foo.txt");is going to name a file that it is in the current directory (the directory the jarred or unjarred application was run from). If you move the jar, but don't move foo.txt then it won't be able to find the file.
    Any of your code that directly or indirectly uses files will have to change to use resources within the jar archive instead.
    If you get stuck, post some code. Something brief, compilable, runnable which shows what you mean by saying that it doesn't work.

  • How do I tell Windows 7 to open SWF files (executable not showing in Program Files)

    Windows 7 asks for a program to open SWF, and I installed Shockwave, but I cannot find the program in Program Files or Program Files (X-86).
    On Windows XP, SWF files automatically opened with Shockwave, but now W7 says I need a plug-in for my Firefox browser to open it with Flash Player.

    Please ask your question on a forum for the Flash Player

Maybe you are looking for

  • Attach GOS attachments with a standard send mail functionality

    Hi Folks, I am here after long time and need your help. I have a requirement where I need to attach document with a standard send mail functionality. Below is the details: From Quality notification 'Action Box', if the user select a perticular action

  • Date of import vs date camera thinks it is

    I imported a huge group of pics using my daughters old digital camera that can't seem to keep dates straight. I then went and took just a few more and imported them. Turns out The camera thinks it's 2007. I was able to find and rename the pics with l

  • Data purging in 11i

    Hi All, I am new to Oracle 11i apps. i would like to know, 1. What are the tables or logs need to be purge in periodic basis? 2. Why i need to purge those tables or logs? 3. Am i need to do it manually or scripts exists in the server? 4. Is there any

  • HT1212 unable to unlock broken iphone

    My iphone 4 was dropped and badly damaged, i am trying to save photos etc to computer but cannot as unable to unlock as screen  wont work. is there any other way of unlocking it/confirming my password, and syncing to my new computer?

  • To people accessing Hotmail on their iPhone using POP3

    Do you consistently get an audio alert when new email arrives? My yahoo account always notifies me, very rarely on new email arrival to my Hotmail account do I get an audio notification - I do get the visual notification (i.e. number overlaying the e