Executing commands in a different parent shell?

I'm a bit of a UNIX newbie. I would like to start up a command such as "rsync" and let it go in the background in the OS X terminal, and be able to then quit the terminal and have the process continue to function. I can't seem to find the way to do this. When I use the "&" character at the end of the command, it puts the command in the background and lets me execute others, but if I kill the shell it also kills that process. I'm figuring this is because the process is a child of the shell and killing the parent gets rid of all running child processes. Is there a simple way to get a command to run in a parallel shell or in another parent so I can start it up in the terminal and then quit the terminal but have the process continue?

I've been messing around with the "nohup" command, and just tried your inclusion of it with the "&" character to background the task. For my tests I'm copying ~64MB from a temporary folder called "Experiments" to a backup folder, and I'm redirecting all the output into a logfile using the verbose flag on rsync and ">>" in the command. Here's the command:
nohup rsync -av --delete ~/Desktop/Experiments/ ~/Desktop/Backup/ >> ~/Desktop/backup.log &
It sends the process to the background, and if I keep the shell open it takes a couple of seconds and then exits normally, terminating the process upon completion. If I close the terminal immediately after executing the command it copies a few items, but then breaks with an error that it outputs in the log file (mentions something about a broken pipe):
building file list ... done
created directory /Users/tkessler/Desktop/Backup
.DS_Store
2007-12-05 TK WTc10b Ana copy 10.pxp
2007-12-05 TK WTc10b Ana copy 11.pxp
2007-12-05 TK WTc10b Ana copy 12.pxp
2007-12-05 TK WTc10b Ana copy 13.pxp
2007-12-05 TK WTc10b Ana copy 14.pxp
2007-12-05 TK WTc10b Ana copy 15.pxp
2007-12-05 TK WTc10b Ana copy 2.pxp
2007-12-05 TK WTc10b Ana copy 3.pxp
2007-12-05 TK WTc10b Ana copy 4.pxp
2007-12-05 TK WTc10b Ana copy 5.pxp
2007-12-05 TK WTc10b Ana copy 6.pxp
2007-12-05 TK WTc10b Ana copy 7.pxp
2007-12-05 TK WTc10b Ana copy 8.pxp
2007-12-05 TK WTc10b Ana copy 9.pxp
2007-12-05 TK WTc10b Ana copy.pxp
2007-12-05 TK WTc10b Ana.pxp
2007-12-05 TK WTc8b Ana copy 10.pxp
2007-12-05 TK WTc8b Ana copy 11.pxp
rsync error: received SIGUSR1 or SIGINT (code 20) at /SourceCache/rsync/rsync-30/rsync/rsync.c(231)
rsync: writefd_unbuffered failed to write 104 bytes: phase "unknown" [generator]: Broken pipe (32)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-30/rsync/io.c(909)
-----

Similar Messages

  • 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}

  • Could not execute command "getState" for server server01 using nodemanager

    Hi,
    I have built a weblogic 9.1 env with 2 managed servers running on different boxes from the admin server.
    I am having problems in starting the managed servers using the nodemanager. I get the following error message in the Admin server log:
    <Error> <NodeManager> <BEA-300034> <Could not execute command "getState" for server "******" using the node manager. Reason: I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found).>
    I get the following message on the admin console:
    For server ******, the Node Manager associated with machine ******-machine is not reachable.
    All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager. No action will be performed.
    I can start the managed server using the "startMangedWeblogic.sh" without any issues.
    Any help on this would be greatly appreciated.
    Thanks

    one more thing to add:
    I get the following error in the Managed server log:
    <I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)>
    java.io.FileNotFoundException: Domain directory '/opt/bea/weblogic91/common/nodemanager' invalid (domain salt file not found)
    at weblogic.nodemanager.server.DomainManager.initialize(DomainManager.java:74)
    at weblogic.nodemanager.server.DomainManager.<init>(DomainManager.java:46)
    at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:239)
    at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:170)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:104)
    at weblogic.nodemanager.server.Handler.run(Handler.java:64)
    at java.lang.Thread.run(Thread.java:595)

  • Handle same delete command from 2 different sessions!

    Dear All,
    My database is 11gR2. I am in a situation where 2 applications are using the same database. There are times when the same delete command is issued from both applications that hangs the DB. None of the query is successfully executed.
    I want to lock the rows so that the first query executes and while second waits and when first completes second query is executed, though it wont delete any records as records are delete from the first query. But there is no hanging situation. Should I lock the table before running the query? or i first select the records using for update?
    Kindly help on this.
    Regards,
    Imran

    Thanks, The details are:
    Actually my applications are the 2 radius servers that are again getting requests from BRAS server. BRAS issues a delete command to radius server 1, if radius server is busy and takes longer then 3 seconds to respond BRAS issues the same command to radius server 2. When the same command from 2 different servers executes on the DB there is kind of dead lock, when this situation happens I have to terminate session of any one radius server and then the other query gets executed.
    I understand that Oracle takes care of this automatically but in my situation my DB is under tremendous load and sometimes I have to terminate sessions.
    Its a simple delete command with some selection. I hope this helps a bit.
    Regards, Imran

  • Execute crs_stat –t with different user

    Hi Xperts
    I am trying to do a monitoring script and I want to execute crs_stat –t with different user than Oracle (DB and Grid owner), I receive:
        CRS-0245:  User doesn't have enough privilege to perform the operation
        CRS-0202: No resources are registered.
    I already register User2 to Oinstall group and I am able to connect to sqlplus with User2.
    This monitoring scripts is going to be part of one monitoring tool, I already integrate other DB monitoring scripts.
    DB: Oracle RAC 11gR2(11.2.0.3) with OEL 5.9
    Thank you for your time
    Regards

    can you try to execute crsctl stat res -t -init using user2 .
    crs_stat command  is deprecated  in 11gR2.
    Thanks,
    http://gssdba.wordpress.com

  • Web to execute commands in other machines

    Hi,
    I have to do a web page to execute commands (exe, bat) situated in different machines.
    I need to see the results in my web page, and I would prefer to have my distributed application deployed in application servers instead of have to run jvm in the machines.
    Can you give me any concrete idea? And web sites or books to begin with this?
    Thank you very much by your help.
    J.

    First of all, thanks a lot by your help.
    I will try explain better (sorry about my english).Don't worry about that!
    There are several servers and clients that I want to
    monitor and I want to execute some operations over
    them, like for example reboot, reboot the database,
    creating some specific things, whatever, and these
    operations are impletemented in every machine (they
    use to be .exe and .bat applications)So far, so good
    Now I want to do and interface to do all these
    operations from it and to monitor the whole system
    (if the system is running correctly in every
    machine), I want to have a common interface for the
    whole system and I want to access to it from
    everywhere (if it is possible).
    Everywhere?? Are you sure? Sounds extremely insecure, to me!
    In terms of security, the application will need a
    login and whatever it is neccesary.
    I want to go in the right direction :)
    Thank you!Ok, you've actually got several problems to solve here. You need a single monitoring app that runs on these servers, which allows you to connect to it from over a network, so that you can request the logs, or issue the admin commands. Then you need a client to connect to that piece of software, and since you want to do this via a web browser, that's probably best to be a servlet. How I'd tackle this, I'd first write the server software that does the listening, and have it pretend to send logs, reboot machines and what-not. Then I'd write the servlet and the web pages to control and monitor it. Then I'd go about writing the hooks between your shiny server and the various commands you need to run. You could do them in any order you like, really. The trick is, though - and this applies to all software projects - to tackle them one by one. Almost all problems can be decomposed into smaller, more manageable chunks. Do that, and nothing will be so scary again

  • 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.

  • Settings to get the last executed command

    I have a basic question.
    How to set up the upper arrow key to get the last executed command you had. Just like what is in the DOS.
    Thank you for your reply
    Lynn

    Which shell are U using ?
    In KSH use set -o emacs option.
    tcsh, bash supports up-arrow key.

  • 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

Maybe you are looking for

  • 10.1.3.3.0 Patch error

    I have applied 10.1.3.3.0 patch to 10.1.3. for my Oracle SOA Instance. After applying the patch I am able to open the Application Control Page and I am able to access my ESB control but not my BPEL control. I am getting the following error. Your resp

  • The home folder for user isn't located in the usual place......

    ....or can't be accessed. Ok so I have trawled the internet and found this to be a known problem, however mine has an extra twist. Ok, my Mac has a local admin account, lets call it Admin, but the account I use is a network account called PBN. This n

  • Download data from cube to excel

    Hello gurus. I need to download data from a cube to excel... but is not possible to download all the data, because excel restrictions. Do you know a way to download all the data? Thanks in advance, Vitor Ramalho

  • How can I get a photo album together in Dreamweaver?

    I was just wondering if anyone would be able to tell me how I can get a photo album set up and running on my web pages?  I have Dreamweaver CS3 on my MAC Thank you in advance.

  • PIA install fails in PTools 849,WL92MP3 on solaris 10

    Hi All. cant install PIA, and the error states: elect 1 to install, select 2 to change your values or select 3 to exit. Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] JAR LOCCC----->/opt/psoft/fin88dmo/setup/PsMpPIAInstall JAR LO