Running fscript commands directly from Tool code

Does any one know how to run fscript commands directly from Tool code.
Better still how to run a script file containing fscript commands
directly from Tool code
regards,
Manish shirke.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Try that :
RunCommand('fscript < MyScript.fsc');
Hope this help you,
At 12:29 02/10/98 -0400, Shirke, Manish wrote:
Does any one know how to run fscript commands directly from Tool code.
Better still how to run a script file containing fscript commands
directly from Tool code
regards,
Manish shirke.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
Jean-Baptiste BRIAUD software engineer
SEMA GROUP france
16 rue barbes
92120 montrouge
mailto:[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • How to run a CMD command directly from run ?

    How to run a CMD command directly from run ?
    Like "cmd md D:\abcd". I did this before. But now I totally forgot how to do that ?
    Please help..........

    Hi,
    To add, here is the command CMD reference:
    Cmd
    Best regards
    Michael Shao
    TechNet Community Support

  • Looking to run unix command line from Finder

    I want to run a unix command directly from finder. Kind of like using command-G to "Go To Folder".
    If a current method isn't supported, I noticed that Terminal.app has a shortcut for "New Command" using command-N. What would be the right way to create a keyboard shortcut in Finder that would call Terminal->New Command?
    Thanks

    You might use a third-party macro expansion utility that permits creating keyboard macro shortcuts. Examples include QuicKey or iKey. There are also several text expansion utilities that also allow attaching keyboard shortcuts such as TextExpander or Typinator. The above can be found at VersionTracker or MacUpdate.
    You can also create an AppleScript using the Do Shell Script command. The resulting compiled script can be attached to an Automator action. I don't know if you can attach a keyboard shortcut but you can add an Automator action to the Services menu and to the Finder's contextual menu.

  • Running a jar file from java code

    Hi!
    Im trying to run a jar file from my code.
    I've tried Classloader, but that doesnt work because it doesnt find the images (also embedded in the 2nd jar file).
    WHat I would like to do is actually RUN the 2nd jar file from the first jar file. There must be a way to do this right?
    any ideas?

    ok, I found some wonderful code (see below) that will try to start the jar. But it doesn't. What it does is produce the following error when my application runs...
    So it's not finding the images in the jar file that I am trying to run? Strange. I checked the URL that sending, but it seems ok....
    I think I will check the url again to make sure......
    any ideas?
    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)
    the code....
    /* From http://java.sun.com/docs/books/tutorial/index.html */
    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.net.JarURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.jar.Attributes;
    * Runs a jar application from any url. Usage is 'java JarRunner url [args..]'
    * where url is the url of the jar file and args is optional arguments to be
    * passed to the application's main method.
    public class JarRunner {
      public static void main(String[] args) {
        URL url = null;
        try {
          url = new URL(args[0]);//"VideoTagger.jar");
        } catch (MalformedURLException e) {
          System.out.println("Invalid URL: ");
        // Create the class loader for the application jar file
        JarClassLoader cl = new JarClassLoader(url);
        // Get the application's main class name
        String name = null;
        try {
          name = cl.getMainClassName();
        } catch (IOException e) {
          System.err.println("I/O error while loading JAR file:");
          e.printStackTrace();
          System.exit(1);
        if (name == null) {
          fatal("Specified jar file does not contain a 'Main-Class'"
              + " manifest attribute");
        // Get arguments for the application
        String[] newArgs = new String[args.length - 1];
        System.arraycopy(args, 1, newArgs, 0, newArgs.length);
        // Invoke application's main class
        try {
          cl.invokeClass(name, newArgs);
        } catch (ClassNotFoundException e) {
          fatal("Class not found: " + name);
        } catch (NoSuchMethodException e) {
          fatal("Class does not define a 'main' method: " + name);
        } catch (InvocationTargetException e) {
          e.getTargetException().printStackTrace();
          System.exit(1);
      private static void fatal(String s) {
        System.err.println(s);
        System.exit(1);
    * A class loader for loading jar files, both local and remote.
    class JarClassLoader extends URLClassLoader {
      private URL url;
       * Creates a new JarClassLoader for the specified url.
       * @param url
       *            the url of the jar file
      public JarClassLoader(URL url) {
        super(new URL[] { url });
        this.url = url;
       * Returns the name of the jar file main class, or null if no "Main-Class"
       * manifest attributes was defined.
      public String getMainClassName() throws IOException {
        URL u = new URL("jar", "", url + "!/");
        JarURLConnection uc = (JarURLConnection) u.openConnection();
        Attributes attr = uc.getMainAttributes();
        return attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;
       * Invokes the application in this jar file given the name of the main class
       * and an array of arguments. The class must define a static method "main"
       * which takes an array of String arguemtns and is of return type "void".
       * @param name
       *            the name of the main class
       * @param args
       *            the arguments for the application
       * @exception ClassNotFoundException
       *                if the specified class could not be found
       * @exception NoSuchMethodException
       *                if the specified class does not contain a "main" method
       * @exception InvocationTargetException
       *                if the application raised an exception
      public void invokeClass(String name, String[] args)
          throws ClassNotFoundException, NoSuchMethodException,
          InvocationTargetException {
        Class c = loadClass(name);
        Method m = c.getMethod("main", new Class[] { args.getClass() });
        m.setAccessible(true);
        int mods = m.getModifiers();
        if (m.getReturnType() != void.class || !Modifier.isStatic(mods)
            || !Modifier.isPublic(mods)) {
          throw new NoSuchMethodException("main");
        try {
          m.invoke(null, new Object[] { args });
        } catch (IllegalAccessException e) {
          // This should not happen, as we have disabled access checks
    }

  • Using external C libraries from TOOL code

    Hello,
    As described in "Integrating with external systems", FORTE TOOL code can
    interface with C libraries.
    I finally got the DMathTime example running, thanks to Alain Dunan in UK who
    put me on the right track.
    At the begining I paid no attention to the fact that the documentation says
    "interfacing with C functions". It is the "C" which is important, it means
    that the declarations of all the externals of the library must comply to C
    and not to C++ !
    Therefore it's wrong to compile the DMathTime library with a C++ compiler
    right away (CC -PIC -c *.c).
    If you do so every thing works fine until you run the program. Then you get :
    USER ERROR: The dynamic library
    /sp1/soft/forte2e2/userapp/distmath/cl0/dmathtm for the project
    DistMathAndTimeProject could not be found.
    Class: qqsp_ExistenceException
    Detected at: qqsh_DynScope::GetLoadedScope at 1
    Last TOOL statement: method DistMathAndTimeTest.Runit, line 5
    Error Time: Wed Aug 7 10:22:19
    Exception occurred (remotely) on partition
    "TestDistMathAndTimeProject_cl0_Part1", (partitionId =
    C9731008-EAE4-11CF-B553-C56F3BFEAA77:0x160:0x42, taskId =
    [C9731008-EAE4-11CF-B553-C56F3BFEAA77:0x21d:0x4.89]) in application
    "AutoCompileSvc_cl0", pid 29598 on node nation in environment CentralEnv.
    SYSTEM ERROR: System Error: ld.so.1:
    /sp1/soft/forte2e2/install/bin/ftexec: fatal: relocation error: symbol not
    found: OurTime: referenced in
    /sp1/soft/forte2e2/userapp/distmath/cl0/dmathtm.so, loading the library
    '/sp1/soft/forte2e2/userapp/distmath/cl0/dmathtm.so'
    Class: qqos_DynamicLibraryException
    Error #: [101, 29]
    Detected at: qqos_DynamicLibrary::Load at 1
    Error Time: Wed Aug 7 10:22:19
    Exception occurred (remotely) on partition
    "TestDistMathAndTimeProject_cl0_Part1", (partitionId =
    C9731008-EAE4-11CF-B553-C56F3BFEAA77:0x160:0x42, taskId =
    [C9731008-EAE4-11CF-B553-C56F3BFEAA77:0x21d:0x4.89]) in application
    "AutoCompileSvc_cl0", pid 29598 on node nation in environment
    CentralEnv.
    It works if you change the external declarations of the library to read :
    extern "C" <declaration>
    prior to compiling the library with the C++ compiler (there might be other
    ways to get the same result).
    Alain told me that it works if instead of compiling the library with a C++
    compiler, a C compiler is used; but unfortunately I don't have a C compiler
    on the SPARC solaris here.
    best regards,
    Pierre Gelli
    ADP GSI
    Payroll and Human Resources Management
    72-78, Grande Rue, F-92310 SEVRES
    phone : +33 1 41 14 86 42 (direct) +33 1 41 14 85 00 (reception desk)
    fax : +33 1 41 14 85 99

    Apart from the Oracle documentation you mean?
    http://technet.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96590/adg11rtn.htm#1656
    Cheers, APC

  • "VS_NEEDSNEWMETADATA" error while running a package created from C# code

    I have gone through most of the answers for similar questions here however none has resolved the issue. We have created a package using C# code which stages data from a source table to destination (ChildPackage.dtsx).
    Source Table : RowKey, Col1, Col2
    Destination Table : RowKey, Col1, Col2, RowID, RunID (RowID is an identity column in destination table and RunID is a derived column whose value is set using a variable)
    This package runs fine when we execute it directly however, we run these packages from a master package (MasterPackage.dtsx). When we are trying to run the package (ChildPackage) from a MasterPackage we get an error:
    [SSIS.Pipeline] Error: "Oledb Destination" failed validation and returned validation status "VS_NEEDSNEWMETADATA".
    We have tried setting DelayValidation to true for the ChildPackage and even tried setting the values for "ValidateExternalMetadata" for the source and destination component as "False" for the data flow task
    of the ChildPackage.
    There is no case difference between column names in source and destination and it runs fine when we run the ChildPackage directly.
    The only additional task that the Master package performs is to generate and set a variable that is used as RunID value by the child package.
    If we hardcode the RunID in the ChildPackage and run it directly, it runs fine.
    The MasterPackage.dtsx is not created from code and has a step to run ChildPackage.dtsx. We generate the ChildPackage.dtsx from code and replace in original solution.
    Any help would be appreciated.
    Gaurav Agarwal

    Where then this RunID is consumed?
    Arthur My Blog
    The RunID is set by the MasterPackage in a parameter, this parameter is used as value of derived column in the data transformation task of the ChildPackage.
    As mentioned ChildPackage has a RunID column.
    Gaurav Agarwal

  • Run SBO report directly from SDK

    Hi, is there a way to run an SBO report (for example Service Contracts) directly from SDK? The report should be given the necessary parameters too.
    I know that i can call Service Contracts form, simulate a query to find the appropriate record and then simulate a click on print preview button. This way it will undoubtedly work.
    But I would prefer opening the print preview directly, without the need of opening another form, that slows down the whole process. Is there a way to do this?

    Tamas,
    There is currently not an object via the SDK to directly run a report.  You would have to use the work around that you mentioned.
    Eddy

  • Need to call webservice WSDL directly from Java code

    Hi All,
    I hope u all are doing great.
    I am new to web services and i have a requirement where i need to call the webservice directly from the java code, we dont need any middle layer(via proxy n all).
    Can you all please help me on this, we are using Jdeveloper 11g and we do have WSDLs
    we shld be able to use the wsdl in code and pass the request and get the request
    Any help will be appreciated
    Thanks

    @Puthanampatti     
    Thanks, but i already went through this link and seems this link also says we need to access webserivice through stub,dii etc.
    I want straught java code to access webservice without any tier in between
    Thanks

  • Running a command line from JDeveloper

    I am new to JDeveloper. I want run the following file:
    java SplitFile < test.txt
    Is there a way to add the < test.txt to the run command or is there another way to run this?
    Thank you,
    Stephen Hartfield

    use Tools- External Tools - New.. to configure the program to run java command inside jdeveloper

  • Redwood Cronacle : run a transaction directly from Cronacle

    Hello everyone,
    Do you know if it's possible to run directly from Cronacle a SAP transaction without using an ABAP program ?
    Thank you for your reply.
    Scheduling team

    Hello
    No this is not possible. Are there any transactions in particular that you want to schedule?
    However, if you go to a transaction through the SAP GUI automatically an ABAP program is created in the background. You should be able to run that ABAP from SAP CPS.
    Regards Gerben

  • Running the .class file from java code

    I'm doing a kind of providing service like compiling and running Java code on server side and giving output to the end user.
    Please suggest me an approach with code to run .class file from the Java code.
    import java.io.*;
    public class demo {
    public static void main(String args[]) throws IOException, InterruptedException {
    int result;
    try {
    System.out.println("command output:");
    Process proc = Runtime.getRuntime().exec("java -cp . demoh");
    InputStream in = proc.getInputStream();
    result = proc.waitFor();
    BufferedInputStream buffer = new BufferedInputStream(proc.getInputStream());
    BufferedReader commandOutput = new BufferedReader(new InputStreamReader(buffer));
    String line = null;
    System.out.print(commandOutput);
    try {
    while ((line = commandOutput.readLine()) != null) {
    System.out.print(line);
    System.out.println("command output: " + line);
    }//end while
    commandOutput.close();
    } catch (IOException e) {
    //log and/or handle it
    }//end catc
    } catch (IOException e) {
    System.err.println("IOException raised: " + e.getMessage());
    }

    What happened when you tried what you have there?

  • Java running host command - moved from PL/SQL forums

    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for HPUX: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    Hi,
    I am not familiar with Java setting in Oracle
    I have a a stored procedure that call a java program to execute host command like
    ssh user1@localhost '/home/user1/someprogram'
    if we execute this directly using PuTTY
    we can do the following with no problem
    su - oracle
    ssh user1@localhost '/home/user1/someprogram'
    but when we execute the stored procedure,
    we have to do
    */usr/bin/ssh* user1@localhost '/home/user1/someprogram'
    does anybody where to set the path or environment to make the java know the path correctly.
    thanks
    ps:. this is happen after we recently upgraded our Oracle from 9.2.0.8 to 11.1.0.6

    pgoel wrote:
    You said,
    a stored procedure that call a java program to execute host command like ssh user1@localhost '/home/user1/someprogram'SP -calls> Java Program (JP) -runs> ssh user1@localhost '/home/user1/someprogram'. is that right? I presume locahost is a database server.correct
    this is the stored procedure
    CREATE OR REPLACE PROCEDURE host_command (p_command  IN  VARCHAR2)
      AS LANGUAGE JAVA
      NAME 'Host.executeCommand (java.lang.String)';and this is the java
    create or replace and compile java source named host as
    import java.io.*;
    public class Host {
      public static void executeCommand(String command) {
        try {
          String[] finalCommand;
          if (isWindows()) {
            finalCommand = new String[4];
            // Use the appropriate path for your windows version.
            finalCommand[0] = "C:\\windows\\system32\\cmd.exe";  // Windows XP/2003
            //finalCommand[0] = "C:\\winnt\\system32\\cmd.exe";  // Windows NT/2000
            finalCommand[1] = "/y";
            finalCommand[2] = "/c";
            finalCommand[3] = command;
          else {
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
          new Thread(new Runnable(){
            public void run() {
              BufferedReader br_in = null;
              try {
                br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                String buff = null;
                while ((buff = br_in.readLine()) != null) {
                  System.out.println("Process out :" + buff);
                  try {Thread.sleep(100); } catch(Exception e) {}
                br_in.close();
              catch (IOException ioe) {
                System.out.println("Exception caught printing process output.");
                ioe.printStackTrace();
              finally {
                try {
                  br_in.close();
                } catch (Exception ex) {}
          }).start();
          new Thread(new Runnable(){
            public void run() {
              BufferedReader br_err = null;
              try {
                br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
                String buff = null;
                while ((buff = br_err.readLine()) != null) {
                  System.out.println("Process err :" + buff);
                  try {Thread.sleep(100); } catch(Exception e) {}
                br_err.close();
              catch (IOException ioe) {
                System.out.println("Exception caught printing process error.");
                ioe.printStackTrace();
              finally {
                try {
                  br_err.close();
                } catch (Exception ex) {}
          }).start();
        catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
      public static boolean isWindows() {
        if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
          return true;
        else
          return false;
    Where does Java Progarm reside? On the database server filesystem OR within the Database itslef. within the Database itslef.
    Edited by: HGDBA on Mar 11, 2011 1:50 PM

  • Run CD content direct from HD

    My wife teaches first grade and has an old G3 iMac that she lets her students use in her classroom. She has several programs on CD that the kids use. As you can imagine the disks take a beating. How can I copy the contents of the CD's onto the hard drive so that the CD's are not needed? I used to know how to do this but haven't run OS 9 myself in ages. My searches also turned up nothing.
    Thanks.

    If you decide to go down the Disk Copy disk image route, it may pay to lock (use Get Info) the disk image file, before mounting it.
    Roxio Toast, if you already have it, usually does a much better job at making usable disk images. Same again, remember to lock the disk image before mounting it.
    Otherwise, I'm assuming that there is only one iMac and only one CD for each software package, just live with the CD's. A spindle of 50 CD's goes for about £7 in rip-off Britain. Buy them when they're on offer in the supermarkets two-for-one, and I have 100 CD-R's for £0.07 each.
    A final alternative, and clutching at straws here, is that the software packages just don't need the CD installed. ie. you can just copy the files to the iMacs internal hard disk using the Finder. If the software comes from the days of 3.2GB and 4Gb hard disks, it may just not have considered copying 600MB of content to a hard disk a viable option.

  • Problem with running a DTS package from CF Code

    i am using a CFQUERY Tag with EXEC dbo.storedprocname to
    execute a stored procedure on our sql server which runs a DTS
    package. the cf template allows them to upload a text file to the
    server for import to a sql table via this DTS package. the problem
    is that if the DTS package fails - it does nto notify the user
    runnign the CF template. is there any way to notify the user when
    the DTS package fails?

    well the size of the data file being import varies widely.
    the import is to be run daily but some days it might contain 10
    records and some days it might contain 10,000. the dts package
    itself generally takes a few seconds to process and the CF template
    takes around 5-10 seconds to complete.
    so if i were to add a dts task to the end of my work flow to
    update a table with a status message, that might work, but how
    would i capture the status of the dts import task?
    as for the asynchronous gateway, i don't think that would
    work for me, the user would want more immediate feedback, they
    would not wait for an email confirmation (the target users have
    trouble figuring out how to use email as it is - they are not the
    most computer savvy). so likely if i could get the dts package to
    write a status message to a table, then i would just add a cfquery
    to my cf template after the one that runs the dts package, and
    check for the status message and output it to the screen.
    but the key is how do i add a dts task to grab the status of
    the dts import task and drop it in a table.

  • Running Ant Tasks from my code

    Hi,
    I am writing a build tool to compile and build all our J2EE code. To do this i need to be able to run a number of any tasks from my code, does anyone know how to do this? I could create a .bat file and get mt program to execute it but i would rather find a way of doing this directly from my code.
    Thanks
    SK

    Hi,
    I am writing a build tool to compile and build
    uild all our J2EE code. To do this i need to be able
    to run a number of any tasks from my code, does
    anyone know how to do this? I could create a .bat
    file and get mt program to execute it but i would
    rather find a way of doing this directly from my
    code.
    Thanks
    SKReverse the concept. Run your code from Ant!

Maybe you are looking for

  • Links in web browser opposed to Adobe Pro

    I have a problem that I am trying to fix.  I have an intranet map application(opened in IE) that allows in house users to *click* a feature to open a general Information.pdf about that map feature (ie. street sign).  the general information pdf has l

  • Html file in the content of email.

    hi friends, I want to send email in the html format. can we pass the html file in the content of mail? i.e instead of doing this messageBodyPart.setContent("<html><body> " + "---------------------------------------------------------------------------

  • Why charge for Bank transfers?

    BT penalises everyone who doesnt pay by direct debit because they claim that it "costs" more to process the payments. What about online payments made by BACS transfer? Surely they should not be charging for those because they are electronic payments

  • How to roll back a transport.

    Hi Experts, How can I revert a transport after transport is released? Regards.

  • Network connection extremely slow after snow leopard upgrade

    I should first state that my son's new Intel Mac Mini (2009 model) is working fine without any issues - it is on the "n" band. My wife's macbook (on Leopard) and my Thinkpad are continuing to work fine - both connecting to the "g" band of my Simultan