Unix command output to a TextArea

Hi,
I would like to use the contents of the variable >>line<< to be displayed in a JTextArea in another class within the same package.
Code:
public class HostAction implements ActionListener {
static String line;
public void actionPerformed(ActionEvent e) {
//monitor the next block of code
try {
Process process = Runtime.getRuntime().exec("hostname");
BufferedReader output = new BufferedReader( new InputStreamReader( process.getInputStream() ) );
while ( (HostAction.line = output.readLine()) != null )
{  // start while
System.out.println(HostAction.line);
} //end while
//catch IOException (no input data)
}catch (IOException x) {
//if IOException caught, display this
System.out.println("No Input Data");
Does anyone have a suggestion on how this can be accomplished?
Thanks!
Rusmir.

// in some other class...
JTextArea ta = new JTextArea(HostAction.line);The JTextArea should already exist, but if you have a reference to it, just append using the methods provided by JTextArea.
The above code would create a new JTextArea for every line, which is not likely what you are after.

Similar Messages

  • Capturing Unix command output in WLST

    I am trying to write a WLST/Python script that connects to a particular domain based on the machine the script is run on. My thought was to issue the 'hostname' Unix O/S command get the name of the machine, test against it, and connect based on the output. My initial thought was to do something like
    import os
    hr = os.system('hostname')
    if hr == 'name':
    ConnectToAS()
    This doesn't work of coarse because the os.system() command returns the boolean exit code of the statement and not the output. I then tried looking into using the 'subprocess' mod but that returns the following:
    Problem invoking WLST - Traceback (innermost last):
    File "/home/beaadmin/bin/scripts/wlst/wip/checkMachine.py", line 1, in ?
    ImportError: no module named subprocess
    Does anyone know of another way to run a WLST/Python script that get's the name of the machine it's running on and make that name available to the rest of the calling script?
    Any help would be greatly appreciated.

    Thanks for the reply but I was hoping to stay away from external dependencies. Since you have to set the environment to run WLST we use shell scripts as wrappers to launch WLST. I think I will look at getting the hostname from the shell script:
    hn=`hostname` and then pass that to WLST:
    java weblogic.WLST script-name.py $hn
    I am hoping to be able to test against it with Python:
    import sys
    HOSTNAME = sys.argv[1]
    if HOSTNAME == 'some-machine-name':
    connect to something
    of coarse with this I would need to hard code all the machine names in the Python script to test against and then modify the script if we ever add machines. sigh I guess if it was easy I wouldn't appreciate it.
    Edited by: user8004556 on Sep 1, 2011 11:21 AM

  • Having trouble in running a unix command and getting the output

    Hi,
    I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
    import java.io.*;
    public class RunCommand {
        public static void main(String args[]) {
            String s = null;
            try {
                Process p = Runtime.getRuntime().exec("cat UNIX_ASCII_TEXT_FILE | A_UNIX_PROGRAM -d");
                BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
                // read the output from the command
                System.out.println("Here is the standard output of the command:\n");
                while ((s = stdInput.readLine()) != null) {
                    System.out.println(s);
                // read any errors from the attempted command
                System.out.println("Here is the standard error of the command (if any):\n");
                while ((s = stdError.readLine()) != null) {
                    System.out.println(s);
                System.exit(0);
            catch (IOException e) {
                System.out.println("exception happened - here's what I know: ");
                e.printStackTrace();
                System.exit(-1);
    }The error message that I am getting is
    Here is the standard output of the command:
    SLu|%%$$=
    Here is the standard error of the command (if any):
    cat: cannot open |
    cat: cannot open A_UNIX_PROGRAM
    cat: cannot open -dLooks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.

    You might read this article and see if its approach works.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Output from Send Unix command stalled

    after send a unix command to a client the output from
    the command stalls. It seems that the output is buffered
    and that the final buffers are not flushed. This behaviour
    is new since 10.5.5 --
    Anyone know of a way to control the buffer size, when
    they are flushed or to how to run unbuffered ??
    ARD 3.2.2 all around and 10.5.6 all around ARD on a Quad Xenon
    and clients iMac Alum

    well this seems to have been a red herring --
    I had not set the "linebuffering" option on the
    command
    the command was lapply from the radmind suite
    needed to set "-i"
    thanks

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • Calling unix command in Apex Window

    I am working on a small project where in; it would be handy to run an external plsql in oracle database which calls for unix command such as tail -f alert.log or tail -1000 alert.log when a button is pressed in the application.
    I know the client and server aspect and very difficult to forward the server output to Application specially web based but still thought of trying my luck to get some insights from this forum .
    Is this possible in Apex ?
    UK

    Don't see why not. All the building blocks are there (assuming a recent version of the database, and that 1000 is a realistic metric of the data volume):
    1. A script to run the required UN*X commands.
    2. An initial log extract file created manually using the script.
    3. An external table on the log extract file.
    4. An external scheduler job to rerun the log extract script to refresh the log extract.
    5. An APEX page with a report based on the external table, and a button that calls the external job.
    Note that providing relevant information when asking a question is helpful in determining a solution:
    - APEX version
    - DB version and edition
    - Web server architecture (EPG, OHS or APEX listener)
    - Browser(s) used
    - Theme used
    - Templates used

  • Executing UNIX command in Java

    I am having problems executing a command in Java. Here's the code I have for executing:
    Process p = Runtime.getRuntime().exec(cmd);
                                            BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
         while((display = input.readLine()) != null)
                             num_1 = Double.parseDouble(display);
                             percent = (num_1 * 100) / (50000000);
                        flip = 1;
                        catch(IOException e)
                        e.printStackTrace();     
                        System.exit(1);
    Now, when I run the script, I receive the following errors:
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.io.FilePermission /Netadmin/UCDSNMP/bin/snmpdelta execute)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(RuntimeException.java:47)
    at java.lang.SecurityException.<init>(SecurityException.java:39)
    at java.security.AccessControlException.<init>(AccessControlException.java:57)
    at java.security.AccessControlContext.checkPermission(Compiled Code)
    at java.security.AccessController.checkPermission(Compiled Code)
    at java.lang.SecurityManager.checkPermission(Compiled Code)
    at java.lang.SecurityManager.checkExec(SecurityManager.java:789)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Runtime.java:152)
    at snmp.actionPerformed(Compiled Code)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    The user is entering the parameters for the UNIX command from a Java applet. Everything looks right, but I can't seem to run the file? Please help! All is appreciated.
    Jason Banks
    Northeastern University

    Sorry, this is a bug that I've reported -- see Sun's response and my original report (along with how to get around the problem) shown below:
    Hi Vira Van.,
    The bug you have reported is a duplicate of Bug ID: 4522533.
    Thank you for providing us with additional information
    that can be used in the resolution of this bug.
    This bug can be monitored via the the Java Developer
    Connection Bug Parade at:
    http://developer.java.sun.com/developer/bugParade/index.jshtml
    The Java Developer Connection is a free channel that is
    maintained by staff here at Sun.  Access this web page to join:
    http://developer.java.sun.com/servlet/RegistrationServlet
    The home page for the JDC is:
    http://java.sun.com/jdc
    Regards,
    Girish
    ----------------- Original Bug Report-------------------
    category : java
    release : 1.4
    subcategory : jar
    type : bug
    synopsis : signed applet: bad major version number on NN4.79 and ClassNotFound in IE5.5
    description : FULL PRODUCT VERSION :
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    FULL OPERATING SYSTEM VERSION : Windows 98 [Version
    4.10.2222]
    ADDITIONAL OPERATING SYSTEMS :
    BROWSERS: Netscape Navigator 4.79
            : Internet Explorer 5.5
    EXTRA RELEVANT SYSTEM CONFIGURATION :
    Applet failed to start in Netscape, the following error
    message appeared in the Java Console:
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad
    major version number
    java.lang.ClassFormatError: Bad major version number
      at java.lang.ClassLoader.defineClass(Compiled Code)
      at netscape.applet.AppletClassLoader.findClass(Compiled
    Code)
      at netscape.applet.AppletClassLoader.loadClass1(Compiled
    Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled
    Code)
      at netscape.applet.AppletClassLoader.loadClass(Compiled
    Code)
      at
    netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(
    Compiled Code)
      at
    java.awt.EventDispatchThread$EventPump.dispatchEvents(Compil
    ed Code)
      at java.awt.EventDispatchThread.run(Compiled Code)
      at
    netscape.applet.DerivedAppletFrame$AppletEventDispatchThread
    .run(Compiled Code)
    The same applet
    A DESCRIPTION OF THE PROBLEM :
    Unable to run signed applet with Netscape 4.79 and IE5.5
    native JVM.
    REGRESSION.  Last worked in version 1.3.1
    STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
    1.compile program and copy class files to a temp directory
    2.sign the applet for Netscape as follows:
    signtool -k aok -d \progra~1\netscape\users\viravan -Z
    FIO.jar temp
    3.sign the applet for Internet Explorer as follows:
    cabarc -p n FileIO.cab FileIO*.class
    setreg 1 true
    makecert -sk aok -n "CN=aok" aok.cer
    cert2spc aok.cer aok.spc
    signcode -j javasign.dll -jp LOWX -spc aok.spc -k aok
    FileIO.cab
    Run the applet with the following HTML file:
    <html><head><Title>Self-Signed Applet</Title>
    <script>
    document.layers ? parm=1 : parm=0;
    </script>
    <body>
    This file I/O applet lets you read and write to the user's
    local disk.<br>
    <br>
    <script>
    document.writeln('<APPLET CODE = "FileIO" CODEBASE = "."
    ARCHIVE = "FIO.jar" WIDTH = 10 HEIGHT = 10 NAME = "JSF">');
    document.writeln('<param name="Netscape"
    value="'+parm+'">');
    document.writeln('<param name="cabbase"
    value="FileIO.cab">');
    document.writeln('</APPLET>');
    </script>
    </body>
    </html>
    EXPECTED VERSUS ACTUAL BEHAVIOR :
    A frame with a textarea and some buttons should popup in the
    center of the screen.
    ERROR MESSAGES/STACK TRACES THAT OCCUR :
    Applet signed with signtool failed to start in Netscape, the following error
    message appeared in the Java Console:
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad major version number
    java.lang.ClassFormatError: Bad major version number
      at java.lang.ClassLoader.defineClass(Compiled Code)
      at netscape.applet.AppletClassLoader.findClass(Compiled Code)
      at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
      at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
      at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
      at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
      at java.awt.EventDispatchThread.run(Compiled Code)
      at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
    Code)
    The same applet signed with signcode failed to start in Internet explorer, the
    error message in the Java Console is:
    Error loading class: FileIO
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: FileIO
            at com/ms/vm/loader/URLClassLoader.loadClass
            at com/ms/vm/loader/URLClassLoader.loadClass
            at com/ms/applet/AppletPanel.securedClassLoad
            at com/ms/applet/AppletPanel.processSentEvent
            at com/ms/applet/AppletPanel.processSentEvent
            at com/ms/applet/AppletPanel.run
            at java/lang/Thread.run
    This bug can be reproduced always.
    ---------- BEGIN SOURCE ----------
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class FileIO extends Applet implements ActionListener {
       public static void main(String[] args) {
          new FileIO();
          F.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent e) {
                System.exit(0);
       public void init() {
          String tmp=getParameter("Netscape");
          if (tmp!=null) {
             if (tmp.equals("1")) {
                try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileAccess");
                   NS=true;
                } catch (Throwable exception) {}
          new FileIO();
          F.setResizable(false);
       public void stop() {
          F.dispose();
       public FileIO() {
          newline=System.getProperty("line.separator");
          F.setLayout(new BorderLayout(0,0));
          String line,inbuf="";
          String newline=System.getProperty("line.separator");
          text=new TextArea(inbuf,24,80,TextArea.SCROLLBARS_BOTH);
          text.setFont(new Font("Courier",Font.PLAIN,12));
          text.setBackground(Color.cyan);
          text.setForeground(Color.black);
          F.add("Center",text);
          Panel pan=new Panel();
          pan.setLayout(new FlowLayout(1,0,0));
          pan.setBackground(Color.yellow);
          TF=new TextField(40);
          TF.setFont(new Font("Courier",Font.PLAIN,12));
          pan.add(TF);
          OP=new Button("Open");
          OP.addActionListener(this);
          pan.add(OP);
          FS=new Button("Save");
          FS.addActionListener(this);
          pan.add(FS);
          SA=new Button("Save-As");
          SA.addActionListener(this);
          pan.add(SA);
          reset=new Button("Reset");
          reset.addActionListener(this);
          pan.add(reset);
          F.add("South",pan);
          F.pack();
          Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();
          Dimension size=F.getSize();
          int X=(screen.width-size.width)/2;
          int Y=(screen.height-size.height)/2;
          F.setLocation(X,Y);
          F.setVisible(true);
       public void actionPerformed(ActionEvent event) {
          String tmp="";
          String O=text.getText();
          StringTokenizer tkn=new StringTokenizer(O,newline);
          int ntkn=tkn.countTokens();
          Object ev=event.getSource();
          if (ev.equals(OP)) {
             FileDialog fd=new FileDialog(F,"File to open",FileDialog.LOAD);
             fd.setFile("*.java");
             fd.show();
             tmp=fd.getDirectory();
             if (fd.getFile()==null) {text.requestFocus(); return;}
             tmp+=fd.getFile();
             TF.setText(tmp);
             try {
                if (NS)
    {netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");}
                BufferedReader reader=new BufferedReader(new FileReader(tmp));
                String line;
                String crlf="";
                tmp="";
                while ((line=reader.readLine())!=null) {
                   tmp+=crlf+line;
                   crlf="\n";
                reader.close();
                text.setText(tmp);
             } catch (Throwable e) {
                e.printStackTrace();
          } else if (ev.equals(FS) || ev.equals(SA)) {
             try {
                if (ev.equals(SA)) {
                   FileDialog fd=new FileDialog(F,"File to save",FileDialog.SAVE);
                   fd.setFile("*.java");
                   fd.show();
                   tmp=fd.getDirectory();
                   tmp+=fd.getFile();
                } else {
                   tmp=TF.getText();
                if (tmp.length()==0) {text.requestFocus(); return;}
                if (tmp.indexOf(".java")<0) tmp+=".java";
                TF.setText(tmp);
                if (NS)
    {netscape.security.PrivilegeManager.enablePrivilege("UniversalFileWrite");}
                FileOutputStream fos=new FileOutputStream(tmp);
                BufferedWriter out=new BufferedWriter(new OutputStreamWriter(new
    DataOutputStream(fos)));
                for (int i=0;i<ntkn;i++) out.write(tkn.nextToken()+newline);
                out.flush();
                out.close();
                if (NS)
    {netscape.security.PrivilegeManager.revertPrivilege("UniversalFileWrite");}
                System.out.println(tmp+" saved");
             } catch (Throwable e) {
                e.printStackTrace();
          } else if (ev.equals(reset)) {
             text.setText("");
             TF.setText("");
          text.requestFocus();
       private String replace(String input, String srch, String repl) {
          int i=input.indexOf(srch);
          while (i>=0) {
             input=input.substring(0,i)+repl+input.substring(i+srch.length());
             i=input.indexOf(srch);
          return input;
       private Button OP,FS,SA,reset,TB;
       private boolean newLine,NS=false;
       private TextArea text;
       private TextField TF;
       private final char NL='\n';
       private String content,newline;
       private static Frame F=new Frame("FileIO");
    ---------- END SOURCE ----------
    CUSTOMER WORKAROUND :
    build the signed applet with SDK1.3.1 or make it a signed
    applet that uses Java Plugin 1.4.0 (i.e., sign it with jarsigner).
    workaround :
    suggested_val :
    cust_name : Vira Van.
    dateCreated : 2002-03-24 19:52:18.4
    dateEvaluated : 2002-04-01 18:48:10.858

  • "at" UNIX Command in Java Program

    Friends,
    1. "at" command in UNIX execute Unix command at a scheduled time. 2. For each user there will be a table maintained internally which can be accessed by "at" with "-l" argument.
    3. A mail will be sent to the owner with the output of the commands as a message.
    I tried to run the "at" command of Unix in JSP, which gets succesfully executed in Oracle 10g App Server container (Installed in Solaris machine). I have tested the successful execution of command with the log file. But I haven't got any mail for the output. If anyone had any idea, please help me.
    The code I have wtitten is
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(new String[] {"sh","-c","at 2115 Dec 7 < /export/home/usr1/abc.sh"});
    InputStream stderr = proc.getErrorStream();
    InputStreamReader isr = new InputStreamReader(stderr);
    BufferedReader br = new BufferedReader(isr);
    String line = null;
    logger.info("<ERROR>");
    while ( (line = br.readLine()) != null)
    logger.info(line);
    logger.info("</ERROR>");
    int exitVal = proc.waitFor();
    logger.info("Process exitValue: " + exitVal);
    My doubts are:
    1. Who is the owner of the output of "at"command, which gets executed under Oracle 10g App Server container?
    2. If no one is the owner, then where will the output of "at" command will go?
    3. Is there any other way to execute "at" command of UNIX in java program? If so, then please help me.
    Thanks in advance.
    regards
    Nandha Kumar.M

    filestream I have to ask - what's a chav ?
    I have doubts abut what it is :-)
    Seriously though, what is that an abbreviation for?
    That's a new one to me.
    http://www.chavscum.co.uk
    chavs are roughly analogous to rednecksI wouldn't use that analogy. While both may lack certain social graces, rednecks typically don't receive ASBOs.
    Chavs favor small cars with lots of bling whereas rednecks are likely to drive a pickup or a large sedan.
    Chavs have pitbulls in their yards (gardens), rednecks an '84 Mustang LX on cinder blocks.
    etc, etc.
    Message was edited by:
    filestream
    Message was edited by:
    filestream

  • Call unix command in sqlplus script

    Hello, I wanna to know how to call a unix command in the sqlplus script.
    For exemple,
    I've a sqlplus script to lauch a oracle report, after the report is generated, I wanne to replace the output file in an other directory.
    So that, I have to call the unix command mv here in the sqlplus script
    How can I do it?**
    I completed my situation:
    I don't have dbms_scheduler untility in my database.
    Thanks a lot for your help
    Edited by: user11930885 on 17 janv. 2010 14:53

    Yes, at the begining, I'll tried the unix shell by calling SQL.
    I've the problem of passing the parameters through.
    It seems to me
    we can use
    Host in the SQLPLUS to run the unix command.
    but I've written it in my sqlplus script, it doesn't work. so I wanna to find an exemple how to use HOST in sqlplus script?
    I would have loved to give you an example..but its not unix on my laptop.
    But what i can tell you is...u should be doing otherway round.
    Not calling Unix commands from SQL but calling SQL's form unix.
    You got shell scripts for that.
    Write a shell script. Login to SQL execute your code.
    exit from sql and then move your file with MV. That's it.
    Do post how far you get after trying this.

  • Unix command in Report Builder

    Is it possible to use UNIX command in Report builder because I am trying to move one file in UNIX directory to some other directory in UNIX also.
    Thanks
    Shishu Paul
    Chandigarh

    Hye, Basically , I have attached this report in Oracle Apps 11.5.10 and wants to output of this, always having specific output id for each report which have been completed in Apps to be move to some specified folder.
    Please provide some guidance.
    Thanks
    Shishu Paul

  • How do run unix command in java

    hi
    All unix command working fine in our java program.
    but i want change user in linux by using java. it's not working.
    "su root" This command onely not working.
    anybody know help me
    This is my ID [email protected]
    This my code
    <% String s = null;
    try{
    Process p = Runtime.getRuntime().exec("su root");
    BufferedReader stdInput = new BufferedReader(new
    InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new
    InputStreamReader(p.getErrorStream()));
    out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    out.println(s);
    catch(Exception e) {}
    %>

    I don't have further info to add to your first post, but think your guess seems quite reasonable. I thought of starting a new thread on the same topic, but think this (question) fits in here, too.
    I have Java code (freeware, not opensoure), intended for Unix, which basically provides the graphical interface and relies on an I/O layer (C + shell scripts) to do most of the work. I have access to the C+shell scripts which are opensource. I ported it to Cygwin and want to use it under Windows (there is no Cygwin native Java VM).
    My problem now boils down to " how to run commands under Unix and what differences are there with Windows". What are the variants?
    I have to guess what the program is doing when I get an IOException at some point. E.g.: a call to shell script may be made in a different way as to a compiled exe in Unix?. I found a way to bypass path problems because forward slashes are also accepted and /cygdrive/c construct can be replace by c:/; shell scripts can be compiled into exes using shc and they work; if symbolic links are replaced by duplication of exe files, they work. What will happen in an instance whereby a process runs a shell script dynamically, through a pipe (the shell script is compiled in the Cygwin/win version and receives parameters) in a construct like:
    pipefp = epopen(cmdbuf,"w"); /* (cmbuf is "makehdr par1 par2 ... ") (makehdr was a shell script and is now compiled exe for Cygwin/Windows) */?.
    Thanks.
    LT

  • Problem With UNIX command in ODI Environment.

    A procedure is used in our package which involves moving a file from a folder to another in a UNIX server.
    The procedure uses an OS command - 'os.system' to execute unix command.
    The unix command is a grep command which seems to work fine when executed alone.
    But when this procedure is executed ,it fails.
    The following code raises an error and the procedure fails.:
    if os.system(cmd) <> 0:
    raise "command fails","see agent output for details";
    Whenever we are trying to reverse,we get "file not Found " error.
    We tried to execute the jython code by placing the files in local directories. The same error appears both when the file is in local and when it is in a remote directory.
    This is the error we get:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 20, in ?
    HeaderCmd failed:: See agent output for details      at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)      at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

    Hi,
    The unix command is a grep command which seems to work fine when executed alone. :-
    I guess you executed this from your Unix server , so it work fines.
    And when you are trying to execute outside from this (using ODI) , its failing , right ?
    Can you please check the permission settings for that script file (sh).
    Please try by giveing the full permission (specifically execution permission) for all users connecting from other machines.
    This can be one of the reason for the failure .
    please let me know if this is not working
    Regards,
    Rathish

  • How to execute unix command through odi and store the result in table

    I have to reconcile  if data is loaded in table from csv file or not . I have to create a oracle data integrator package/interface/procedure to execute unix command to count number of rows in the csv files and store the count result in a table then i have to query the loaded table and count number of rows there and store in the table and have to compare is counts are same or not,  Please assist me how to make package/interface/procedure to  execute unix command and store result in oracle table.
    Thanks in Advance

    Use ODI OS command tool in the ODI package.
    create an interface in ODI using LKM File to Sql and the output file generated with the csv file's row count as a source and the db table(where the count needs to be stored) as a target

  • How to execute a Unix Command in java

    Hi, Iam trying to execute a unix command on Sun Solaris by passing that command to a java program. How can I achieve this?
    Thanks in advance.

    Have a look at the javadoc around the Runtime.exec() method. If the command is a shell command then you might have to execute a shell as well as the command.
    For example, if you wanted to run a unix command 'ls -l > output.txt' the you might have to pass the following string into the exec() method,
    "/bin/sh ls -l > output.txt'

  • Problem with Updating clients with UNIX command

    Hi.
    Until this day, I used to update all our 50 client macs by manually logging in as administrator via ARD and choosing Software Update from the apple menu, this works always and I use our own servers SUS so the downloading is really fast. Still, this clearly is time consuming and annoying when you have this many clients. I have now done some search and I know I could do this by sending unix command to clients using ARD. First I had problems with running the command, then I noticed I need to run this as root. Then it "works".
    Works, not quite. It starts to run, and I can see all the output. I have tried this with few clients and the results are confusing. The following is an output from one client I send the command "softwareupdate -i -r"
    SIBELIUS411 (172.17.6.36)
    2011-03-25 13:13:20.610 softwareupdate[1692:392b] PackageKit: * Missing bundle identifier: /Library/Receipts/PPDInstallerRI3222E3L.pkg
    2011-03-25 13:14:09.636 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
    2011-03-25 13:14:09.798 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
    2011-03-25 13:14:09.801 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
    2011-03-25 13:19:40.016 softwareupdate[1692:903] PackageKit: * Missing bundle identifier: /Library/Receipts/PPDInstallerRI3222E3L.pkg
    Software Update Tool
    Copyright 2002-2009 Apple
    Downloading Safari
    Verifying Safari
    Waiting to install Safari
    Downloading Mac OS X Update Combined
    Verifying Mac OS X Update Combined
    Waiting to install Mac OS X Update Combined
    Downloading Ricoh Printer Software Update
    Verifying Ricoh Printer Software Update
    Waiting to install Ricoh Printer Software Update
    Downloading iWeb Update
    Verifying iWeb Update
    Waiting to install iWeb Update
    Downloading Java for Mac OS X 10.6 Update 4
    Verifying Java for Mac OS X 10.6 Update 4
    Waiting to install Java for Mac OS X 10.6 Update 4
    Downloading iTunes
    Verifying iTunes
    Waiting to install iTunes
    Downloading Remote Desktop Client Update x signature
    x RemoteDesktopClient.pkg.tar
    x RemoteDesktopClient.pkg
    x RemoteDesktopClient.pkg/Contents
    x RemoteDesktopClient.pkg/Contents/Archive.bom
    x RemoteDesktopClient.pkg/Contents/Archive.pax.gz
    x RemoteDesktopClient.pkg/Contents/Info.plist
    x RemoteDesktopClient.pkg/Contents/._RemoteDesktopClient.dist
    x RemoteDesktopClient.pkg/Contents/RemoteDesktopClient.dist
    x RemoteDesktopClient.pkg/Contents/Resources
    x RemoteDesktopClient.pkg/Contents/Resources/background.tif
    x RemoteDesktopClient.pkg/Contents/Resources/BundleVersions.plist
    x RemoteDesktopClient.pkg/Contents/Resources/cleanup_list
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/deleteomatic
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/InstallationCheck.string s
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/InstallationCheck.stri ngs
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/InstallationCheck.strin gs
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/InstallationCheck.strin gs
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Hints.plist
    x RemoteDesktopClient.pkg/Contents/Resources/InstallationCheck
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/InstallationCheck.stri ngs
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/InstallationCheck.str ings
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd/icons.pn g
    x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/kickstart
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/makeuser
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/package_version
    x RemoteDesktopClient.pkg/Contents/Resources/PlistBuddy
    x RemoteDesktopClient.pkg/Contents/Resources/postflight
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/cleanStartup.pl
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/copypackages
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/deleteObsoleteFil es
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/learnFiles
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/postflightKicksta rt
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/setupLaunchFiles
    x RemoteDesktopClient.pkg/Contents/Resources/postflightactions/setupLaunchFilesRFBEventHelper
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/setupMenuExtras
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/stampBuildNumInPl istStrings
    x RemoteDesktopClient.pkg/Contents/Resources/postflight_kickstart
    x RemoteDesktopClient.pkg/Contents/Resources/postflightkickstartentries
    x RemoteDesktopClient.pkg/Contents/Resources/postflightmakeuserentries
    x RemoteDesktopClient.pkg/Contents/Resources/preflight
    x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions
    x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/cleanAndPreflightK ickstart
    x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/maybeNukeVNCServer
    x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/moveAsideFirewallD efaultPrefsTiger
    x RemoteDesktopClient.pkg/Contents/Resources/preflight_kickstart
    x RemoteDesktopClient.pkg/Contents/Resources/preflightkickstartentries
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/InstallationCheck.stri ngs
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/InstallationCheck.strings
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/InstallationCheck.string s
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Description.plist
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/InstallationCheck.string s
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/License.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Localizable.strings
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/PantherSU.xml
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/ReadMe.rtf
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/SUDescription.html
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd/icons.png
    x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd/TXT.rtf
    x RemoteDesktopClient.pkg/Contents/version.plist
    Verifying Remote Desktop Client Update
    Waiting to install Remote Desktop Client Update
    Checking packages…
    Installing
    Waiting for other installations to complete…2011-03-25 13:20:01.468 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
    2011-03-25 13:20:01.471 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
    2011-03-25 13:20:01.540 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
    2011-03-25 13:20:01.731 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
    2011-03-25 13:20:01.734 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
    2011-03-25 13:20:01.808 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
    Validating packages…
    Writing files…
    Running package scripts…
    Removing old files…
    Optimizing system for installed software…
    Moving items into place…
    Registering updated components…
    And thats it, it stops there. Few clients completed the task, but the output says that they skipped the installation of all updates. In the case above, there is some skipping too, and I don't know what it means. Yesterday I left one client to this part where its Registering updated components.... , and today when I came in, it's still there, and the task is still running. When I update the clients with the Software Update from apple menu, it takes usually 10 minutes max to complete the whole process, download and install. After I restarted the same client and ran the manual Software Update from apple menu, it shows the same updates, it didn't do anything???
    Am I doing something wrong with the command?

    I am having the same issue. I send the unix command to some test clients to install all updates. The process never finishes and stays at "Registering updated companents....". (See screen shot)
    I have manually restarted some of the clients after waiting a very long time. All updates seem to have been installed. I am wondering why the task hangs at this point. I want to be able to ran ASU with this Unix method on the 450+ macs that I manage at work, but it scares me that the task never seems to finish.

Maybe you are looking for