Chmod to make executable command

Hey all,
I've done a quick search, but was getting confused with some answers I found, so forgive me if this is answered elsewhere.
I'm trying to install and use the todo.sh shell I found (https://github.com/ginatrapani/todo.txt-cli/wiki/User-Documentation). I'm struggling to get Terminal to recognize "todo.sh" as an executable command. I type:
sh todo.sh
chmod +x todo.sh
and I get no errors. But then when I type todo.sh it returns
-bash: todo.sh: command not found
I even tried running this in a tcsh, and I get the same result. To be honest, I've never actually been able to get chmod to work for me before, even though I've tried a handful of times.
Does anyone have any ideas?
Thanks

ls -l todo.sh
-rwxr-xr-x 1 you staff 277 Dec 17 15:21 todo.sh
The x's above indicate if the file has executable permissions. I'm thinking that chmod did add executable permissions, so most like you do not have the directory containing todo.sh in your PATH environment variable.
You can continue to use the "sh todo.sh" approach, or you can specify a path to the todo.sh
./todo.sh # assumes you are in the directory with todo.sh
# -OR-
$HOME/todo.sh # assumes todo.sh is in your home directory
# -OR-
/full/path/to/todo.sh
You could also modify the PATH environment variable and put the directory with todo.sh in your PATH.
You modify PATH in your .bash_profile (does not exist if you have not created one in the past), or the .profile (bash will choose .bash_profile over .profile, and .profile does not exist unless you created it in the past).
Modifying PATH would be done something like:
nano .bash_profile
and add
export PATH="$PATH:/full/path/to/the/directory"
ONLY You know what /full/path/to/the/directory containing todo.sh is.

Similar Messages

  • Unable to execute command adprmkey in upgrading 11i to 12.1.1

    Hello Team Leaders:
    I am in the process of upgrading EBS 11.5.10.2 to Release 12.1.1. I have imported the database, Layed down the apps and have started applying patches. While running adpatch I have encountered:
    java.lang.Exception: ERROR: Unable to execute command: adprmkey /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar.tmp
    at oracle.apps.ad.jri.util.JarSignerOptions.getOptions(JarSignerOptions.java:50)
    at oracle.apps.ad.jri.util.JarSignUtils.signJarWithJarsigner(JarSignUtils.java:132)
    at oracle.apps.ad.jri.adjmx.mergeAndExtract(adjmx.java:1313)
    at oracle.apps.ad.jri.adjmx.main(adjmx.java:970)
    Done Analyzing fndlist.jar : Fri Oct 26 2012 16:06:42
    ERROR: The following jars failed to get generated properly.
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndforms.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewtpv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaol.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/wfapi.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaroraclnt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndmail.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndactiv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndformsi18n.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/mapclient.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndxmlparserv2.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cs/jar/cs.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/az/jar/azwizard.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/jtf/jar/jtfgrid.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cct/jar/cctbasic.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/msd/jar/msejar.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/wps/jar/wpsgantt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar
    I then tried relinking on jar manually:
    cd /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar
    ll fndaroraclnt.jar
    -rw-r--r-- 1 applfint dba 1135766 Apr 1 2009 fndaroraclnt.jar
    adrelink.sh force=y "fndaroraclnt.jar "
    Errors:
    adrelink: error: Product library for product "fndaroraclnt.jar" not found.
    "fndaroraclnt.jar" might not be listed correctly in your OFT1_ofintest.env file,
    you may be missing some files for product "fndaroraclnt.jar",
    or "fndaroraclnt.jar" could be an invalid product.
    adrelink will not try to link product "fndaroraclnt.jar".
    Continuing work on other products...
    adrelink is exiting with status 1
    What is my problem?
    Mathias

    Hi Hussein,
    Following command in (11864081 12.1.3 Java.lang.Exception: Unable To Find Or Read Parameter File /d01/oracle/R12DEV/apps/a [ID 1479911.1]), I have executed:
    adrelink.sh force=y "ad adprmkey"
    And the output errors are:
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Sun Oct 28 01:59:50 EDT 2012
    Relink of module "adprmkey" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    I checked and do have permissions on /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin:
    drwxr-xr-x 2 applfint dba 4096 Oct 28 02:10 bin
    Browsing around the system I noticed:
    1) three broken links in /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32:
    libgfortran.so -> ../../../../libgfortran.so.3.0.0
    libmudflapth.a -> ../../../i686-redhat-linux/4.4.4/libmudflapth.a
    libmudflap.a -> ../../../i686-redhat-linux/4.4.4/libmudflap.a
    libgomp.so -> ../../../../libgomp.so.1.0.0
    2) Following MOS note 11864081 12.1.3 Java.lang.Exception. Check this out:
    adrelink.sh force=y "ad adprmkey"
    Failed with:
    usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Fri Oct 26 18:14:16 EDT 2012
    Relink of module "adprmkey" failed.
    3) My OS :
    uname -a
    Linux ofintest.corp.phillips.com 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    4) rpm -q glibc
    glibc-2.12-1.80.el6_3.5.x86_64
    glibc-2.12-1.80.el6_3.5.i686
    5) gcc -v
    Using built-in specs.
    Target: x86_64-redhat-linux
    Configured with: ../configure prefix=/usr mandir=/usr/share/man infodir=/usr/share/info with-bugurl=http://bugzilla.redhat.com/bugzilla enable-bootstrap enable-shared enable-threads=posix enable-checking=release with-system-zlib enable-__cxa_atexit disable-libunwind-exceptions enable-gnu-unique-object enable-languages=c,c++,objc,obj-c++,java,fortran,ada enable-java-awt=gtk disable-dssi with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre enable-libgcj-multifile enable-java-maintainer-mode with-ecj-jar=/usr/share/java/eclipse-ecj.jar disable-libjava-multilib with-ppl with-cloog with-tune=generic with-arch_32=i686 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
    6) g++ --version
    g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    7) ls -al /usr/bin | grep gcc
    lrwxrwxrwx. 1 root root 3 Oct 17 12:28 cc -> gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 x86_64-redhat-linux-gcc
    8) rpm -qf /usr/bin/x86_64-redhat-linux-gcc
    gcc-4.4.4-13.el6.x86_64
    I hope this information helps in troubleshooting this issue for us.
    Thanks
    Mathias
    Thanks,

  • Cannot make executable jar file for swt application

    hi to all!!! i have started learning swt library and it seems nice to me, but i have one problem, i cannot run my application. The problem is that i cannot make executable jar for it.
    i'm using ecilpse_3.1.2 and have pluggined the visual editor for swt! yesterday i found one topic where was described the process of making the swt executable jar, i followed the instructions in the topic, but didn't resolve my problem, so if anybody knows how to achieve this , please help!!!!!!
    the instructions in the mentioned topic are :
    1. Make sure the SWT jar file is included in the Eclipse project build path
    a. Download the standalone SWT jar file from eclipse.org even if you already have the ones that come with Eclipse. It is called ?swt.jar? and you will package it with the executable JAR. Make sure it is the same version of SWT that you used to make your program.
    b. In Eclipse, import swt.jar via Project Properties::Java Build Path::Libraries::Add External JARs. (Make sure to include the source .zip file). Also make sure to select the swt package in the ?Order and Export? tab.
    c. At this point, you should be able to compile and run your SWT application in the Eclipse SDK.
    2. Do a standard Eclipse jar file export
    a. Right click on the main .java project file and select ?Export??.
    b. Choose ?JAR File? from the list.
    c. Select the relevant packages and .classpath and .project resource files
    d. Make sure ?Export generated class files and resources? is selected and browse to the location where you want the JAR file to be created.
    e. Specify ?Generate the manifest file? and don?t seal the JAR or any packages. Choose the class containing the main method as the ?Main class?.
    3. Change the manifest file
    a. Navigate to the JAR file you created and open it with WinZip.
    b. Open the MANIFEST.MF file inside and copy the contents.
    c. Create a new file called ?MANIFEST.MF? and paste in the contents of the old manifest file.
    d. Add the line ?Class-Path: <swt jar file path>?. For simplicity, you can just keep a copy of the swt.jar file in the same folder as the executable jar, in which case, the line is ?Class-Path: swt.jar?. Make sure there is a carriage return after the last line in the manifest file, or that line will not be parsed.
    4. Replace the manifest file
    a. Make sure the manifest file and the executable jar are in the same folder.
    b. Open the command prompt and navigate to the containing folder.
    c. Enter the command ?jar umf MANIFEST.MF <executable jar name>? to update the manifest file with the class path information.
    5. Package the JAR with SWT files
    a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows.
    b. The JAR file should now successfully execute. On Windows, you can usually just double click the JAR file in explorer and it will open. If that does not work, the command ?java ?jar <executable jar name>? on the command line has the same effect.
    but a few steps aren't exact for me , for example : first, which jar i have to include in build path : downloaded or from plugins folder, second
    i have to incude source.zip too??? but it is only in downloaded zip file which includes both swt.jar and src.zip, and finally can anyone clarify next :
    "5. Package the JAR with SWT files
    a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows."
    what does this mean, put these in folder or make jar from them????

    wolve634 wrote:
    but a few steps aren't exact for me , for example : first, which jar i have to include in build path : downloaded or from plugins folder, secondTry it both ways. If neither works, then ask again. In a suitable forum, though. An Eclipse forum or an SWT forum or something related to where you got those instructions would make a lot more sense than asking here.
    i have to incude source.zip too???No, of course you don't have to distribute the source code.
    a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows."
    what does this mean, put these in folder or make jar from them????It says "Put (them) in the same folder". You're asking whether that means to put them in a folder? Yes, it does.

  • Executing command in new powershell window

    Hello guys, I'd like explore directions with gci, but the thing is that istead of using -recurse I'd like to open every single direction in new powershell window. I've made something like this:
    function Get-ScriptDirectory
        $Invocation = (Get-Variable MyInvocation -Scope 1).Value
        Split-Path $Invocation.MyCommand.Path
    $path = Get-ScriptDirectory
    $paths = Get-ChildItem $path -Recurse | ?{ $_.PSIsContainer }
    foreach ($element in $paths) 
        start-process powershell
        $new= $path, $element -join "\"  
        gci $new
    But I don't know to make Powershelle execute command in new window. Start-process powershell only opens new window, but it doesn't import bolded commands. Can I get any suggestions?

    Hi Shadston,
    To add cmdlet in "-command", please refer to the script below:
    Get-ChildItem (Split-Path $MyInvocation.MyCommand.Path) -Recurse -Directory |ForEach-Object{
    start-process -FilePath powershell -ArgumentList @('-NoExit',"& {GCI '$($_.FullName)'; Write-Host 'Hello' }")
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Execute command fails

    Hi All,
    I am facing a weird problem with the Runtime.exec command. I am trying to run a simple Linux command from within Java. But i noticed that commands gets stuck if i run it on a file larger than 2K! If I run the same command on the linux shell it does not fail and it does not get stuck. it ends within less than a second.
    Since I do not want my program to get stuck, I used some code someone published (cannot remember who... but thanks :)) which kills the process after some timeout time. But I still failed to understand why the command gets stuck. Its definitely has to do with file size, since if i take the same file and remove some lines from it, the program does not get stuck. Again running the same command on linux shell does not get stuck and finishes very fast.
    Here's the simplified version of my code,
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.concurrent.TimeoutException;
    import java.io.DataInputStream;
    * Execute command from the Runtime. This class will make sure the external application will not hung the application by specifying
    * a timeout in which the application must return. If it does not an InterruptedException will be thrown
    class JPT_RuntimeExecutor
         private long timeout = Long.MAX_VALUE;
          * Default constructor - Timeout set to Long.MAX_VALUE
         public JPT_RuntimeExecutor()
         // Do nothing
          * Constructor
          * @param timeout Set the timeout for the external application to run
         public JPT_RuntimeExecutor(long timeout)
              this.timeout = timeout;
          Execute a Runtime process
         * @param command - The command to execute
         * @param env - Environment variables to put in the Runtime process
         * @return The output from the process
         * @throws IOException
         * @throws TimeoutException - Process timed out and did not return in the specified amount of time
         public InputStream execute(String command, String[] env) throws IOException, TimeoutException
              Process p = Runtime.getRuntime().exec(command, env);
              boolean status = true;
              // Set a timer to interrupt the process if it does not return within the timeout period
              Timer timer = new Timer();
              timer.schedule(new InterruptScheduler(Thread.currentThread()), this.timeout);
              try
                   p.waitFor();
              } catch (InterruptedException e)
                   // Stop the process from running
                   p.destroy();
                   status = false;
                   throw new TimeoutException(command + "did not return after "+this.timeout+" milliseconds");
              finally
                   // Stop the timer
                   timer.cancel();          
              // Get the output from the external application
              StringBuilder buffer = new StringBuilder();
              BufferedInputStream br = new BufferedInputStream(p.getInputStream());
              while (br.available() != 0)
                   buffer.append((char) br.read());
              String res = buffer.toString().trim();
              if ( status )
                   return p.getInputStream();
              return null;
         private class InterruptScheduler extends TimerTask
              Thread target = null;
              public InterruptScheduler(Thread target)
                   this.target = target;
              public void run()
                   target.interrupt();
      public static void main(String[] args)
          try
              String cmd = "dot -Tplain " + args[0];
              System.out.println( " cmd = " + cmd );
                 JPT_RuntimeExecutor m_process = new JPT_RuntimeExecutor(5000*3);
                 DataInputStream tmpStreamReader = null;
                 try
                      tmpStreamReader =  new DataInputStream( m_process.execute(cmd, null ));
                 } catch (IOException e)
                      e.printStackTrace();
                      return;
                 } catch (TimeoutException e)
                      e.printStackTrace();
                      return ;
                  System.out.println( "END");
          catch ( Exception e )
                      e.printStackTrace();
                      return ;
            return;
    }Here's a sample of the input file I give which gets stuck ( in case you want to run it :))
    digraph koko{
    label="PT=result\nFILE=BottomWindowPathSearch#1Transitive49211"
    27 [label="START\nAC=4363", color=blue]
    29 [label="END\nAC=4363", color=blue]
    69 [label="UOP\nAC=4363", color=black]
    71 [label="ALLOCATE\nAC=3780", color=black]
    73 [label="EXECUTE\nAC=2995", color=black]
    75 [label="RETIRE\nAC=3286", color=black]
    860 [label="alstall_jeclearing\nAC=56", color=black]
    869 [label="JECLEAR\nAC=56", color=black]
    69 -> 29 [label="PRB=0.221\nAC=963", color=blue]
    71 -> 29 [label="PRB=0.053\nAC=202", color=blue]
    73 -> 29 [label="PRB=0.029\nAC=87", color=blue]
    75 -> 29 [label="PRB=0.963\nAC=3111", color=blue]
    73 -> 75 [label="PRB=0.96\nDUR=10/124/1620\nAC=2876", color=black]
    71 -> 73 [label="PRB=0.778\nDUR=8/91/1628\nAC=2983", color=black]
    75 -> 71 [label="PRB=0.031\nDUR=2/300/1414\nAC=99", color=black]
    71 -> 75 [label="PRB=0.088\nDUR=10/59/1246\nAC=339", color=black]
    860 -> 71 [label="PRB=0.732\nDUR=24/30/36\nAC=41", color=black]
    71 -> 860 [label="PRB=0.01\nDUR=4/87/1100\nAC=40", color=black]
    71 -> 71 [label="PRB=0.055\nDUR=4/109/1044\nREP=1.02\nAC=205*1.02", color=black]
    73 -> 860 [label="PRB=0.002\nDUR=16/20/22\nAC=5", color=black]
    75 -> 75 [label="PRB=0.004\nDUR=4/189/920\nAC=14", color=black]
    73 -> 71 [label="PRB=0.006\nDUR=4/144/708\nAC=18", color=black]
    73 -> 73 [label="PRB=0.003\nDUR=2/196/568\nAC=9", color=black]
    75 -> 73 [label="PRB=0.001\nDUR=6/12/18\nAC=2", color=black]
    75 -> 860 [label="PRB=0.002\nDUR=2/46/170\nAC=6", color=black]
    860 -> 75 [label="PRB=0.018\nDUR=2\nAC=1", color=black]
    869 -> 75 [label="PRB=1\nDUR=18/83/982\nAC=56", color=black]
    71 -> 869 [label="PRB=0.015\nDUR=20/109/1628\nAC=56", color=black]
    860 -> 73 [label="PRB=0.018\nDUR=24\nAC=1", color=black]
    69 -> 71 [label="PRB=0.778\nDUR=2/117/1502\nAC=3395", color=black]
    27 -> 69 [label="PRB=0.996\nDUR=430/20932/38130\nAC=4345", color=blue]
    860 -> 69 [label="PRB=0.232\nDUR=10/19/30\nAC=13", color=black]
    69 -> 860 [label="PRB=0.001\nDUR=26/50/82\nAC=5", color=black]
    71 -> 69 [label="PRB=0.001\nDUR=2/7/14\nAC=5", color=black]
    27 -> 71 [label="PRB=0.004\nDUR=584/13675/37096\nAC=18", color=blue]
    If you remove about 8 lines it will not get stuck!
    Hope someone can help me figure out why this is happenning
    thanks
    eman

    Thanks ... somehow I missed this issue..
    The article you sent was really helpful :) recommended for every one
    Here's the code if anyone ever needs it... it runs with timeout so that the program does not get stuck
    Enjoy
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.util.concurrent.TimeoutException;
    import java.io.DataInputStream;
    import java.io.*;
    * Execute command from the Runtime. This class will make sure the external application will not hung the application by specifying
    * a timeout in which the application must return. If it does not an InterruptedException will be thrown
    class JPT_RuntimeExecutor
         private long timeout = Long.MAX_VALUE;
          * Default constructor - Timeout set to Long.MAX_VALUE
         public JPT_RuntimeExecutor()
         // Do nothing
          * Constructor
          * @param timeout Set the timeout for the external application to run
         public JPT_RuntimeExecutor(long timeout)
              this.timeout = timeout*3;
          Execute a Runtime process
         * @param command - The command to execute
         * @param env - Environment variables to put in the Runtime process
         * @return The output from the process
         * @throws IOException
         * @throws TimeoutException - Process timed out and did not return in the specified amount of time
         public InputStream execute(String command, String[] env , String outfileName) throws IOException, TimeoutException
              Process proc = Runtime.getRuntime().exec(command, env);
              boolean status = true;
              // Set a timer to interrupt the process if it does not return within the timeout period
              Timer timer = new Timer();
              timer.schedule(new InterruptScheduler(Thread.currentThread()), this.timeout);
        FileOutputStream fos = new FileOutputStream( outfileName );
        // any error message?
        StreamGobbler errorGobbler = new
        StreamGobbler(proc.getErrorStream(), "ERROR");           
        // any output?
        StreamGobbler outputGobbler = new
        StreamGobbler(proc.getInputStream(), "OUTPUT", fos);
        // kick them off
        errorGobbler.start();
        outputGobbler.start();
              try
          int exitVal = proc.waitFor();
          System.out.println("ExitValue: " + exitVal);
          fos.flush();
          fos.close();       
              } catch (InterruptedException e)
                   // Stop the process from running
                   proc.destroy();
                   status = false;
                   throw new TimeoutException(command + "did not return after "+this.timeout+" milliseconds");
              finally
                   // Stop the timer
                   timer.cancel();          
           BufferedReader in = null;
              try
                in = new BufferedReader(new FileReader( outfileName ));
              catch ( Exception e)
                System.out.println( " Could not open file" + outfileName + "!!!");
              System.out.println( "Start reading output " );
              System.out.println( " ============================== " );
              String input = null ;
              try
                 while ( (input= in.readLine() ) != null )
                    System.out.println( input );
              catch ( Exception e)
                System.out.println( " Could not read line !!!");
              return null;
         class StreamGobbler extends Thread
        InputStream is;
        String type;
        OutputStream os;
        StreamGobbler(InputStream is, String type)
            this(is, type, null);
        StreamGobbler(InputStream is, String type, OutputStream redirect)
            this.is = is;
            this.type = type;
            this.os = redirect;
        public void run()
            try
                PrintWriter pw = null;
                if (os != null)
                    pw = new PrintWriter(os);
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line=null;
                while ( (line = br.readLine()) != null)
                    if (pw != null)
                        pw.println(line);
                    else
                      System.out.println(type + ">" + line);   
                if (pw != null)
                    pw.flush();
            } catch (IOException ioe)
                ioe.printStackTrace(); 
         private class InterruptScheduler extends TimerTask
              Thread target = null;
              public InterruptScheduler(Thread target)
                   this.target = target;
              public void run()
                   target.interrupt();
      public static void main(String[] args)
          try
              String cmd = "dot -Tplain " + args[0];
              System.out.println( " cmd = " + cmd );
                 JPT_RuntimeExecutor m_process = new JPT_RuntimeExecutor(5000);
                 DataInputStream tmpStreamReader = null;
                 try
                      tmpStreamReader =  new DataInputStream( m_process.execute(cmd, null , args[1] ));
                 } catch (IOException e)
                      e.printStackTrace();
                      return;
                 } catch (TimeoutException e)
                      e.printStackTrace();
                      return ;
                     System.out.println( "END");
          catch ( Exception e )
                      e.printStackTrace();
                      return ;
            return;
    }

  • Diadem runtime error while executing command "SchemeMeasStar"

    Hello:
    I used DIAdem9.0 and DAQCard6062E to acquire 16 channel data. I collected 65536 data for every channel. Whereas After the data acquisition stopped, an Error Message would poped up, but the data is still stored in data portal. the Error is like follows:
    -Error- DIAdem
    Runtime Error While Executing Command "SchemeMeasStar"
    Error Type: UNKNOWN
    Error Address:00001720
    Module Name:GFSBase.Dll
    Would you like to give me some suggestions?
    thanks very much
    jing

    Dear MarcusP:
    Thank you very much.
    your solution really works. The attached is the detailed information of the problem. Would you like to tell me more about the prolem and how to solve the problem thoroughly.
    Thank you very much.
    yours
    Jing
    Attachments:
    DIAdem_Error.doc ‏305 KB

  • Error while executing "" command Error type ACCESS VIOLATION Error Address: 0006898E Module name:gfsdesk.DLL

    Hi All,
    I'm using diadem from .net Program. While on the run I'm getting the following error.
    Error While executing "" Command
    Error type ACCESS VIOLATION
    Error Address: 0006898E
    Module name:gfsdesk.DLL
    Anyone have any idea why this is happening?
    regards,
    Swaroop

    Hi Swaroop,
    It would be helpful to better understand what your code really does. The information that you called DIAdem from your enviroenment is not yet sufficient to understand what the problem might be.
    Andreas

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • How to execute command(program) from external file in Oracle SQL developer

    Hi,
    Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
    Example, i have 100 insert SQL inside a text file,
    and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.

    If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
    Now for the big popper: to run an external file: @file
    Best of luck,
    K.

  • Problem in using JDBC Execute commands(Update & Delete Only) with af:Table

    HI Everyone,
    I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
    Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
    Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
    Please Help me to understand this problem and give me the solution for this..
    Thanks
    Fizzz...

    Hi frank,
    Thanks to reply me...
    I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
    Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
    Thanks
    Fizzz...

  • Lom doesn't execute commands

    I'm new in Sun, i just recieved a sun v100 server, i already connected the server to a workstation (using the hyperterminal tool) and it seemmed to be fine... however when the LOM> prompt appears and i try to introduce various commands but it does nothing.
    LOMlite starting up.
    CPU type: H8/3437S, mode 3
    Ram-test: 2048 bytes OK
    Initialising i2c bus: OK
    Searching for EEPROMs: 50(cfg)
    I2c eeprom @50: OK
    i2c bus speed code 01... OK
    Probing for lm80s: none
    Probing for lm75s: 48
    Initialising lm75 @48: OK
    System functions: PSUs fans breakers rails gpio temps host CLI ebus clock
    LOMlite console
    lom>
    LOM event: +0h0m0s LOM booted
    lom>poweron
    (it does nothing...)
    also when i turn the server on with the on/standby switch it also seems to be starting fine, but again when the ok prompt is displayed i try to execute commands and it does again nothing.
    Firmware CORE Sun Microsystems, Inc.
    @(#) core 1.0.18 2002/05/23 18:22
    Software Power ON
    Verifying NVRAM...Done
    Bootmode is 0
    MCR0 = 57b2ce06
    MCR1 = 80008000
    MCR2 = cff0ffff
    MCR3 = b00003ff
    Ecache Size = 512 KB
    Clearing E$ Tags Done
    Clearing I/D TLBs Done
    Probing memory
    Done
    MEMBASE=0xc0000000
    MEMSIZE=0x20000000
    Clearing memory...Done
    Turning ON MMUs Done
    Copy ROM to RAM (154720 bytes) Done
    Orig PC=0x1fff0007edc New PC=0xf0f07f34
    Processor Speed=648MHz
    Looking for Dropin FVM ... found
    Decompressing Client Done
    Transferring control to Client...
    Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
    Probing upa at 1f,0 pci
    Probing upa at 0,0 SUNW,UltraSPARC-IIe (512 Kb)
    Loading Support Packages: kbd-translator
    Loading onboard drivers:
    Probing /pci@1f,0 Device 7 isa dma rtc power SUNW,lomh serial serial
    flashprom
    Probing /pci@1f,0 Device 3 pmu i2c temperature dimm dimm dimm dimm
    i2c-nvram idprom motherboard-fru ppm beep fan-control
    lomp
    Probing Memory Bank #0 512 Megabytes
    Probing Memory Bank #1 512 Megabytes
    Probing Memory Bank #2 512 Megabytes
    Probing Memory Bank #3 512 Megabytes
    Probing /pci@1f,0 Device 7
    Probing /pci@1f,0 Device 3
    Probing /pci@1f,0 Device c ethernet
    Probing /pci@1f,0 Device 5 ethernet
    Probing /pci@1f,0 Device a usb
    Probing /pci@1f,0 Device d ide disk cdrom
    todm5819 Sun Fire V100 (UltraSPARC-IIe 648MHz), No Keyboard
    OpenBoot 4.0, 2048 MB memory installed, Serial #53320536.
    Ethernet address 0:3:ba:2d:9b:58, Host ID: 832d9b58.
    Environment monitoring: disabled
    ok boot
    (again... did nothing)
    i think is a hyperterminal configuration problem but please advide.
    thanks in advance.

    I think I took the wrong path to validate the New Zealand specific tax number. Is it possible to set some rules in PRST1_005 in table T005.
    If this is possible then please pass me the steps description.
    Thanks.
    Naz

  • Problem with the "make config" command

    Kernel Compilation from Source for New Users
    I download the linux-2.6.37-ARCH source files and copied them to /usr/src/.Then i  used "cd linux-2.6.37-ARCH" to move to that directory so i could
    use the "make config" command.Now,when i use "make config" a prompt comes up and I'm not sure how to configure it to my system.
    (when the prompt comes up there are several hundred questions to answer)
    [root@Online linux-2.6.37-ARCH]# make config
    scripts/kconfig/conf --oldaskconfig Kconfig
    # using defaults found in arch/x86/configs/x86_64_defconfig
    * Linux/x86_64 2.6.37 Kernel Configuration
    * General setup
    Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?]
    I think i might have just figured it out. "make xconfig"
    Last edited by unilx (2011-02-20 23:35:24)

    unilx wrote:...so i could use the "make config" command.Now,when i use "make config" a prompt comes up ...
    Are you sure of that command?  Could you have meant make menuconfig  ??

  • ERROR: executing command  /usr/openv/netbackup/bin/bpbackup

    Hi,
    Online backup in one of our integration systems is failing with the followin reasons                                                                               
    Status = 58 : can't connect to client
    Status = 54 : timed out connecting to client
    The complete work log is
    [843860.00] Backup started 08/29/2007 07:21:27                                                                               
    [843860.00]                                                                               
    [983220.02] Backup started 08/29/2007 07:21:27                                                                               
    [983220.02]                                                                               
    [880690.03] Backup started 08/29/2007 07:21:27                                                                               
    [880690.03]                                                                               
    [1085482.01] Backup started 08/29/2007 07:21:27                                                                               
    [1085482.01]                                                                               
    [843860.00] 07:22:07 Initiating backup                                                                               
    [983220.02] 07:22:02 Initiating backup                                                                               
    [880690.03] 07:22:12 Initiating backup                                                                               
    [983220.02] 07:22:34 INF - Waiting for mount of media id MY0015 on server spnb6master.apac.gdc for writing.                                                                               
    [843860.00] 07:22:49 INF - Processing /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    [843860.00] 07:22:49 /                                                                               
    [843860.00] 07:22:49 /oracle/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/sapdata1/                                                                               
    [843860.00] 07:22:49 /oracle/OMI/sapdata1/undo_1/                                                                               
    [880690.03] 07:24:35 INF - Processing /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    [880690.03] 07:24:35 /                                                                               
    [880690.03] 07:24:35 /oracle/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/sapdata3/                                                                               
    [880690.03] 07:24:35 /oracle/OMI/sapdata3/omi_5/                                                                               
    [983220.02] 07:24:55 INF - Beginning backup on server spnb6master.apac.gdc of client ipcby104b1.apac.gdc.                                                                               
    ERROR: executing command  /usr/openv/netbackup/bin/bpbackup -w -t 17  -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.1.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
    Status = 58 : can't connect to client                                                                               
    [1085482.01] EXIT STATUS 58: can't connect to client                                                                               
    ERR - job (1085482) failed status (58)                                                                               
    [880690.03] 07:25:38 /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    [880690.03] 07:25:38 INF - Processing /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    [880690.03] 07:25:38 /oracle/OMI/sapdata3/omi640_11/                                                                               
    [983220.02] 07:26:25 INF - Server status = 54                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    [880690.03] 07:26:41 INF - Processing /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:26:41 /oracle/OMI/sapdata4/omi_6/                                                                               
    [880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    [880690.03] 07:27:44 INF - Processing /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    [880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_9/                                                                               
    ERROR: executing command  /usr/openv/netbackup/bin/bpbackup -w -t 17  -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.2.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
    Status = 54 : timed out connecting to client                                                                               
    [983220.02] EXIT STATUS 54: timed out connecting to client                                                                               
    ERR - job (983220) failed status (54)                                                                               
    [843860.00] 07:28:28 /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    [843860.00] 07:28:28 INF - Processing /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    [843860.00] 07:28:28 /oracle/OMI/sapdata1/omi640_4/                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    [880690.03] 07:28:40 INF - Processing /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata1/                                                                               
    [880690.03] 07:28:40 /oracle/OMI/sapdata1/omi640_3/                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    [843860.00] 07:29:32 INF - Processing /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata2/                                                                               
    [843860.00] 07:29:32 /oracle/OMI/sapdata2/omi640_10/                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    [880690.03] 07:29:47 INF - Processing /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:29:47 /oracle/OMI/sapdata4/omi640_13/                                                                               
    [843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    [843860.00] 07:31:03 INF - Processing /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    [843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_9/                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    [880690.03] 07:31:20 INF - Processing /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata2/                                                                               
    [880690.03] 07:31:20 /oracle/OMI/sapdata2/omi640_8/                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    [843860.00] 07:32:29 INF - Processing /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata4/                                                                               
    [843860.00] 07:32:29 /oracle/OMI/sapdata4/omi_13/                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    [880690.03] 07:32:44 INF - Processing /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata4/                                                                               
    [880690.03] 07:32:44 /oracle/OMI/sapdata4/omi640_15/                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    [843860.00] 07:33:04 INF - Processing /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata1/                                                                               
    [843860.00] 07:33:04 /oracle/OMI/sapdata1/system_1/                                                                               
    [843860.00] 07:33:23 /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    [843860.00] 07:33:23 INF - Client completed sending data for backup                                                                               
    [843860.00]                                                                               
    [880690.03] 07:33:18 /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    [880690.03] 07:33:18 INF - Processing /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    [880690.03] 07:33:18 /oracle/OMI/sapdata4/omi_14/                                                                               
    [880690.03] 07:33:49 /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    [880690.03] 07:33:49 INF - Processing /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    [880690.03] 07:33:49 /oracle/OMI/sapbackup/                                                                               
    [880690.03] 07:33:50 /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    [880690.03] 07:33:50 INF - Client completed sending data for backup                                                                               
    [880690.03]                                                                               
    [843860.00] 07:34:47 INF - Server status = 0                                                                               
    [880690.03] 07:34:57 INF - Server status = 0                                                                               
    [880690.03] 07:36:02 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.                                                                               
    [880690.03]                                                                               
    [843860.00] 07:36:07 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.                                                                               
    [843860.00]                                                                               
    ERROR: wait for process to complete                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_12/omi640.data12                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_7/omi640.data7                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_1/omi.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_2/omi.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_3/omi.data3                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_4/omi.data4                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_2/system.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_10/omi.data10                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_11/omi.data11                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_12/omi.data12                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_6/omi640.data6                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_3/system.data3                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omiusr_1/omiusr.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_7/omi.data7                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_8/omi.data8                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_14/omi640.data14                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_1/omi640.data1                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_2/omi640.data2                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_5/omi640.data5                                                                               
    BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_1/sysaux01.dbf                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/system_1/system.data1                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_10/omi640.data10                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_13/omi.data13                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_9/omi640.data9                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/undo_1/undo.data1                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/omi640_4/omi640.data4                                                                               
    #SAVED.... NS1188352332                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata2/omi640_8/omi640.data8                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_6/omi.data6                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_14/omi.data14                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi_9/omi.data9                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapbackup/cntrlOMI.dbf                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi640_13/omi640.data13                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata3/omi640_11/omi640.data11                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata4/omi640_15/omi640.data15                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata1/omi640_3/omi640.data3                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    #FILE..... /oracle/OMI/sapdata3/omi_5/omi.data5                                                                               
    #SAVED.... NS1188352337                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    BR0279E Return code from 'backint -u OMI -f backup -i /oracle/OMI/sapbackup/.bdwaniws.lst -t file -p /oracle/OMI/102_64/dbs/initOMI.utl -c': 2                                                                               
    BR0232E 16 of 36 files saved by backup utility                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52                                                                               
    BR0231E Backup utility call failed                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.54                                                                               
    BR0317I 'Alter database end backup' successful                                                                               
    BR0056I End of database backup: bdwaniws.anf 2007-08-29 07.36.52                                                                               
    BR0280I BRBACKUP time stamp: 2007-08-29 07.36.55                                                                               
    BR0054I BRBACKUP terminated with errors                  
    Thanks,
    deepthi

    While surfing the net i got one solution
    NetBackup patch S0820462 corrects this by ensuring file name uniqueness with a timestamp value included in the name. Obtain this patch by contacting VERITAS Technical Support. Once you have the patch, follow the instructions included in the file patchS0820462.README which accompanies the patch.
    I got the idea but i dont understand where i will get the info regarding the files ??
    and how this patch has to be installed in the system.

  • Execute commands in multiple Cisco devices simultaneously

    Hi all:
    We have a big network and every time we need to execute commands in switches and routers, it takes a lot going one by one to do it. Is there any way, ie using special software, or Linux, scripts, whatever that can be used to execute same commands in all devices at the same time?
    Thanks in advance
    W.

    in CiscoWorks LMS there is the  RME NetConfig task which can do this for you. You can download an eval copy of LMS here (90 day eval for 100 devices)
    http://www.cisco.com/go/nmsevals or
    https://cisco.mediuscorp.com/market/networkers/listSubCat.se.work?TRGT=8&/nxt/rcrs/=1126
    to get the solaris version
    but there is also the the "Cisco Enhanced Device Interface" which perhaps could be a solituon for you:
    http://www.cisco.com/en/US/products/ps6456/tsd_products_support_series_home.html
    not forget to mention the Kiwi Cat Tools:
    http://www.kiwisyslog.com/kiwi-cattools-overview/

  • Execute  commands/statements in txt file supplied to plsql procedure

    Hi,
    I need to execute commands which are in txt file , this txt filepath is supplied to the procedure.
    In the procedure i want to open the txt file and read the commands and run the commands.
    Please help on this .
    Edited by: 904032 on Jun 26, 2012 12:02 AM

    The fact that you are supplying a file path (more correctly known as a directory) is going to be your first problem. Security within Oracle means that access to files on the file server require a directory object to be specified and these directory objects refer to a specific directory on the file server. If you're going to be passing different directories into your procedure then you're going to have to have different directory objects set up for all the possible directories that can be accessed (or issue dynamic DDL to redefine a known directory object each time).
    Once you've done that you can use the UTL_FILE package (http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_file.htm#ARPLS70906) to read the contents of the file as lines.
    Then it depends what you mean by "commands" and "statements". Are you referring to operating system commands?... If so you will need to use something like the DBMS_SCHEDULER package to issue a job to run immediately with the appropriate command, as that is able to issue operating system commands, or you are going to have to write some Java code to issue commands for you (plenty of examples if you google). OR, perhaps you are referring to SQL statements? These could possibly be issued using the PL/SQL execute immediate statement, but you will be leaving your database open to SQL injection and major security issues, something that most companies would consider a serious flaw and not want.
    how to read string which is delimited by ';'. or how read each charater in a file ..About time you read the documentation (http://tahiti.oracle.com/). There are functions: SUBSTR and INSTR which can search for things in strings and extract parts of strings, or you can use the more advanced regular expression versions of those REGEXP_SUBSTR and REGEXP_INSTR, or even REGEXP_REPLACE (which is also good for extracting parts of strings).
    If you want a more concise answer, you need to ask a more concise question... {message:id=9360002}

Maybe you are looking for

  • The volume of some albums are low on ipod, but normal on itunes

    I recently formatted and updated my ipod to use with my new mac, and added all my songs to it. I have adjusted the volume level of all my songs on itunes to about 70%. After listening to some new albums on the ipod through my Bose Sound Dock, I notic

  • How to load and retrieve images from Portal. URGENT

    Dear all, I've designed a table with an ordsys.ordimage field for images. BIG MISTAKE, because there is no possibility to upload images from a form. I'd like to change it into a BLOB field but an error arises: "You cannot modify the column definition

  • Question about changing file attributes

    Hello, My application brings a support file and it copies it to another directory. Then I should make that file hidden but I cannot find a function how to do it. I guess LV doesn't have that possibility in its functions. Any pointer to a Windows comp

  • Date  format in awm

    Do anyone know how to change date formal in awm? my time dim take the date like '01/13/2007' and I want like '13/01/2007' I have Error Occured: ORA-01843 and I think is because of the format of the date... what do u think? thank you

  • Document currency in the COPA

    Hi, I'm modeling a cube for the COPA using the generated extractor. The COPA holds two currency types, the op. concern currency (B0) and C.code currency(10). My users want also to see in their reports in document currency (transaction currency) is th