Displaying the output from a java class executed from W/I another class

I have compiled a java class, but I have run into a problem executing the class. I have read the posts and still have not solved the solution. I have tried to get the output of the Process by using "proc.getOutputStream().toString()", however it displays it in binary (ex. java.io.BufferOutputStream@48eb2067). If anyone can provide any assistance I would greatly appreciate it. Or if you could tell me if I'm on the right track or not. Thanks ALL. Here is a code segment:
int truncStart = s.indexOf(".java");
               s = s.substring(0,truncStart);
               String[] command2 = {"java","c:/"+s};
               try
               //JOptionPane.showMessageDialog(null,"Exec. File "+s, "Exec. File : ",JOptionPane.ERROR_MESSAGE);
               proc = Runtime.getRuntime().exec(command2);
               JOptionPane.showMessageDialog(null,"Output: "+proc.getOutputStream().toString(),"Output"
,JOptionPane.ERROR_MESSAGE);
               }

You have to read the stream, like:
InputStream stream = proc.getOutputStream();
// now use methods on stream, such as read() to read the characters/lines - or wrap it in another line-friendly stream - see the java.io.* classes - keep reading until you get an end-of-stream indicator, depending on the API you end up using.

Similar Messages

  • I am trying to display the output from my ipod touch on apple tv. i can get the audio but no video. please help

    i am trying to display the output from my ipod touch on apple tv. i can get the audio but no video. Thank you for any advice.

    What output are you trying to get to your tv?

  • Test.jsp not able to display the output from the java code.

    when i try to invoke http://localhost/papz/test.jsp
    I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
    <html>
    <head>
    <title>Test</title>
    <body>
    <%
    out.println("Hello World");
    %>
    asdfasdfasdf
    </body>
    </html>
    i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
    when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
    Any clues whats going on...?
    I followed the instructions...over and over again... but it doesnt seem to help.
    win nt 4.0
    apache 1.3.12
    jserv 1.1.1
    Pls help. Thanks

    Hi,
    Have you solved your problem?
    I4m trying to do the same, but I installed portal 30, then portal to go, and when I try to run test.jsp I get the following error:
    Request URI:/papz/test.jsp
    Exception:
    java.lang.NoSuchMethodError: oracle.jsp.util.JspUtil: method
    stripTarget(Ljava/lang/String;C)Ljava/lang/String; not found
    Thanks
    Pablo Lopera
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by NewBie:
    when i try to invoke http://localhost/papz/test.jsp
    I dont see anything. The page is blank. And there are no error messages in any log files. When i click on view source in IE i get to see the entire source code, including the jave code.
    <html>
    <head>
    <title>Test</title>
    <body>
    <%
    out.println("Hello World");
    %>
    asdfasdfasdf
    </body>
    </html>
    i added in the asdfasdf to see whehter it will be printed or not... It does print that stuff out.
    when i try to invoke the login.jsp page, i get the dialog box "save this file to disk"
    Any clues whats going on...?
    I followed the instructions...over and over again... but it doesnt seem to help.
    win nt 4.0
    apache 1.3.12
    jserv 1.1.1
    Pls help. Thanks<HR></BLOCKQUOTE>
    null

  • How to execute the ldapsearch command by java class in linux os?

    hi,all
    I want to query the users by ldapsearch command. I call the command in my java class. In windows, It work well. But in linux , there haven't any result. My test program is following:
    ===============
    import java.util.*;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.LineNumberReader;
    public class test{
    public static Vector queryAllUser(){
    try{
    Vector v=new Vector();
    String cmdquery="ldapsearch -h localhost -b\"dc=metasphere,dc=com\" \"uid=*\" uid ";
    //String cmdquery="ls -la";
    Process process=Runtime.getRuntime().exec(cmdquery);
    System.out.println("cmdquery:"+cmdquery);
    InputStreamReader ir=new InputStreamReader(process.getInputStream());
    LineNumberReader input = new LineNumberReader (ir);
    System.out.println("input="+input);
    String line;
    while ((line = input.readLine ()) != null){
    System.out.println("Line:"+line);
    if(line.startsWith("uid")){
    String temp=line.substring(line.indexOf(":")+1,line.length());
    v.add(temp);
    return v;
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("runtime error:"+e.getMessage());
    return null;
    public static void main(String argv[]){
    Vector v=queryAllUser();
    for(int i=0;i<v.size();i++){
    System.out.println((String)v.get(i));
    ================
    In fact, when I execute the command: ldapsearch -h localhost -b"dc=metasphere,dc=com" "uid=*" uid
    in linux prompt, the screen show the results:
    version: 1
    dn: uid=toppymgt,dc=metasphere,dc=com
    uid: toppymgt
    dn: uid=qutao,dc=metasphere,dc=com
    uid: qutao
    dn: uid=zz,dc=metasphere,dc=com
    uid: zz
    dn: uid=z,dc=metasphere,dc=com
    uid: z
    dn: uid=admin,dc=metasphere,dc=com
    uid: admin
    dn: uid=alan,dc=metasphere,dc=com
    uid: alan
    dn: uid=misssixty,dc=metasphere,dc=com
    uid: misssixty
    dn: uid=channelv,dc=metasphere,dc=com
    uid: channelv
    What's reason? Please help me. Thx.

    If there have a bugs in Linux OS. Please help me!

  • Cannot read the output from windows command.

    Hello
    I have the following classes
    package cmd;
    import java.io.IOException;
    public class CMD {
        public CMD(){
            ProcessBuilder pb = new ProcessBuilder()
            .command("cmd.exe","/c","del *.*")
            .redirectErrorStream(false);
            Process p;
            try {
                p = pb.start();
                StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "ERROR");
                // any output?
                StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "OUTPUT");
                // start gobblers
                outputGobbler.start();
                errorGobbler.start();
            } catch (IOException e) {
                // TODO Auto-generated catch block
            System.out.println("eee "+e.getMessage());;
        public static void main(String[] args) {
            System.out.println("x");
            new CMD();
            System.out.println("x");
    and
    package cmd;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    public class StreamGobbler extends Thread {
        InputStream is;
        String type;
        StreamGobbler(InputStream is, String type) {
            this.is = is;
            this.type = type;
        @Override
        public void run() {
            try {
                InputStreamReader isr = new InputStreamReader(is);
                BufferedReader br = new BufferedReader(isr);
                String line = null;
                while ((line = br.readLine()) != null)
                    System.out.println(type + "> " + line);
            catch (IOException ioe) {
                ioe.printStackTrace();
    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    Please note that the above example is important because I am developping a tool and it is mandatory for that tool to parse the output from a windows batch command.
    Best regards,

    Please note that I cannot seee the output from wndows command : del *.* and the java class execution does not finished.
    I I will replace the above command with the dir command then the output of the command is visible.
    Would you give me a hint about how to modify the above clases in order to parse the output of the del *.* ?
    No - but I will give you a hint about ProcessBuilder and how to develop software properly.
    Hint #1: Don't try to automate something that you don't know, or understand, how to do manually.
    a. Do you know how to execute 'del *.*' manually in a command window?
    b. Did you try that manually to see what happens?
    My guess is 'no'. If you had you would know that the response to a 'del *.*' command is going to be this:
    Are you sure (Y/N)?
    And your 'java class execution' doesn't finish because the 'del' command is waiting for you to answer that question.
    Hint #2: Don't try to use ProcessBuilder for an application that requires console input unless you first know how to provide that console input via your Java code.
    Your code will wait forever since it does NOT answer that question.
    Search the net and The Java Tutorials and  you can find examples of executing command line utilities. Then try those examples first and make sure that:
    1. They work for you
    2. You understand HOW they work
    Then you can modify those examples to do what you want to do.

  • Getting the output from a Perl script using Runtime.exec

    I cannot get the output from a perl script using Java. Can someone PLEASE help?
    I used the following code:
    Process p = Runtime.getRuntime().exec("C:\\Perl\\bin\\Perl.exe script.pl) ;
    InputSream in = p.getInputStream();
    b...
    do
    System.out.println(b);
    while ((b = in.read()) > 0)
    But there is no way that I get the output in the inputstream. If I use the command "cmd script.pl", the output is displayed in the Dos box, but also not in the inputstream.
    I will appreciate any help.

    Try this
    Process p = Runtime.getRuntime().exec("C:\\Perl\\bin\\Perl.exe script.pl) ;
    BufferedReader rd = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String str;
    while((str=rd.readLine())!=null){
    System.out.println(str);
    Manu

  • Problem displaying the output in the same view

    hi Gurus,
    I have developed an web dynrpo application and have three views, in the first view I am having an input field from which I am calling a BAPI by giving that input field value as input to the BAPI.
    Now is it possible to display the output also retrived from the BAPI on the same view.
    Thanks and regards
    kris

    hi LM,
    Thanks for your fast response.
    I think I was not clear in explaining my problem.
    I have a view in which I have an input field which is the input to the BAPI, now on entering the value in the input field I have a submit button, on clicking the BAPI should be executed and also the the output should be displayed on the same view.
    Now regarding the mapping both the input and output are in the same context, would that a problem.
    And also after getting the output from the BAPI I have to do some validations based on the output from the BAPI and get some message printed on the view.
    Please help me in this issue.
    Thanks and regards
    kris

  • How to reinitialize the sel screen after displaying the output..?

    Hi All,
    I have a report program. In the selection screen, I will provide the input parameters and execute the program which displays the output on the screen. Now, if I come BACK to the selection screen, the values which I entered earlier will appear on the selection screen. My requirement is... If I come BACK from the output screen to the selection screen, the selection screen should be blank. I mean, all the values I entered earlier should be cleared. Could anyone please tell me how to do that.
    Thanks in advance.
    Best regards,
    Paddu.

    Hi Paddu,
    the selection screen will be reinitialized automatically. Only if the INITIALIZATION event or the parameters use SET/GET parameter IDs (addition MEMORY ID pid) the values will prevail.
    You may clear everything in INITIALIZATION event.
    Regards,
    Clemens

  • Display the output in horizontally insted of vertical as per date

    hi
    experts
    display the output in horizontally insted of vertical as per date.
    Date :    From ..........  To  .............
    work center         yeild to confrorm                                    date
    W1                         288                                               1.4.2009
                                  256                                                3.4.2009
    Eg
    workcenter    date :   01.04.2009      2.04.2009    3.04.2009    4.04.2009  .......................
      W1                           288                                 256  
        w2                           234                345                               345

    Hi,
    Incase you have to display this in an ALV; then your internal table will be dynamic.
    Your internal table will consists of following fields
    Work Centre
    Date1
    Date2
    DateN
    The date columns will not be of type d but rather character as in this columns you have to store the workcentres in them.
    Create your dynamic internal table using the class CL_ALV_TABLE_CREATE and method CREATE_DYNAMIC_TABLE.
    You will have to create a fieldcatalog table and pass to the method.
    Then use the dynamic internal table created to store your data horizintally against each date column.
    Display the output in an ALV.
    Pass the date values as the description for each date column in the ALV.
    I hope you get the concept.
    Regards,
    Ankur Parab
    Edited by: Ankur Parab on Jun 23, 2009 4:24 PM

  • Reading the output from another program.

    I haven't used Java in a good long while so I need someone to point me in the right direction. I have a C program that I call from a command line (windoze boxen) and it spits out some neat data. I can call it from inside a Java program, but how do I then read the output from the calling Java program? I'd just alter the C program, but I lost the source.

    This article explains how to correctly execute another program from your
    Java program, and read its output:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to display the output screen when I use bdc.

    hey expert,
    I want to display the output screen when i use bdc without using mode 'A'.
    thank you.

    Hi,
    You can go for mode 'E'.. it will display the output screen directly and if there is any error in the transaction you would get that particular screen and you can correct and continue after which you will get the final screen if anything goes fine...
    check this sample code....
    I had a program if you execute below program it automatically creates a new zprogram.
    REPORT  zprogram_create_recording.
    PARAMETER:
      p_prog    TYPE sy-repid OBLIGATORY,
      p_shtxt TYPE repti OBLIGATORY,
      p_pack  TYPE devclass DEFAULT '$tmp'.
    DATA:
      t_bdcdata LIKE
       STANDARD TABLE
             OF bdcdata.
    DATA:
      wa_bdcdata LIKE LINE OF t_bdcdata.
    REFRESH t_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-program    =  'SAPLWBABAP'.
    wa_bdcdata-dynpro     =  '0100'.
    wa_bdcdata-dynbegin   =  'X'.
    wa_bdcdata-fnam       =  'RS38M-PROGRAMM'.
    wa_bdcdata-fval       =  p_prog.
    APPEND wa_bdcdata TO t_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam       =  'BDC_OKCODE'.
    wa_bdcdata-fval       =  'NEW'.
    APPEND wa_bdcdata TO t_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-program    =  'SAPLSEDTATTR'.
    wa_bdcdata-dynpro     =  '0200'.
    wa_bdcdata-dynbegin   =  'X'.
    wa_bdcdata-fnam       =  'RS38M-REPTI'.
    wa_bdcdata-fval       =  p_shtxt.
    APPEND wa_bdcdata TO t_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam       =  'TRDIR-SUBC'.
    wa_bdcdata-fval       =  '1'.
    APPEND wa_bdcdata TO t_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam       =  'BDC_OKCODE'.
    wa_bdcdata-fval       =  'CONT'.
    APPEND wa_bdcdata TO t_bdcdata.
    IF p_pack EQ '$TMP'.
    *local object
      CLEAR wa_bdcdata.
      wa_bdcdata-program    =  'SAPLSTRD'.
      wa_bdcdata-dynpro     =  '0100'.
      wa_bdcdata-dynbegin   =  'X'.
      wa_bdcdata-fnam       =  'KO007-L_DEVCLASS'.
      wa_bdcdata-fval       =  ' '.
      APPEND wa_bdcdata TO t_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam       =  'BDC_OKCODE'.
      wa_bdcdata-fval       =  'TEMP'.
      APPEND wa_bdcdata TO t_bdcdata.
    ELSE.
    *package assignment with request
      CLEAR wa_bdcdata.
      wa_bdcdata-program    =  'SAPLSTRD'.
      wa_bdcdata-dynpro     =  '0100'.
      wa_bdcdata-dynbegin   =  'X'.
      wa_bdcdata-fnam       =  'KO007-L_DEVCLASS'.
      wa_bdcdata-fval       =  p_pack.
      APPEND wa_bdcdata TO t_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam       =  'BDC_OKCODE'.
      wa_bdcdata-fval       =  'ADD'.
      APPEND wa_bdcdata TO t_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-program    =  'SAPLSTRD'.
      wa_bdcdata-dynpro     =  '0300'.
      wa_bdcdata-dynbegin   =  'X'.
      wa_bdcdata-fnam       =  'KO008-TRKORR'.
      wa_bdcdata-fval       =  ' '.
      APPEND wa_bdcdata TO t_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam       =  'KO008-AS4TEXT'.
      wa_bdcdata-fval       =  ' '.
      APPEND wa_bdcdata TO t_bdcdata.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam       =  'BDC_OKCODE'.
      wa_bdcdata-fval       =  'LOCK'.
      APPEND wa_bdcdata TO t_bdcdata.
    ENDIF.                                 " IF P_PACK EQ '$TMP'
    CALL TRANSACTION 'SE38' USING t_bdcdata MODE 'E'.
    Hope this would help you..
    Regards
    Narin Nandivada

  • How to get the output path in Java?

    Hi all,
    is there a way (method) to get the output path (where compiled classes are put) in Java?
    thx a lot!
    Michele

    If you have already successfully loaded the classes into memory, and you want to find out where the classes are physically stored, then you can use Class.getResource() to retrieve the location of the file.
    import java.net.URL;
    public class Find
      private void run(String obj) {
        try {             
          Class cls = Class.forName(obj);
          //Here is the change to input correct resource path
          //instead of class name 
          String resourcePath = "/"+obj.replace('.','/')+".class";
          URL url = cls.getResource(resourcePath);
          System.out.println(url);
        catch (Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
        Find find = new Find();
        find.run(args[0]);   
    }java Find java.lang.String
    jar:file:/usr/local/j2sdk1.4.2_13/jre/lib/rt.jar!/java/lang/String.class
    Edited by: Jin on Oct 23, 2007 10:38 AM

  • // Code Help need .. in Reading CSV file and display the Output.

    Hi All,
    I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
    I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
    The example of CSV file is 
    Firstname,LastName
    Happy,Coding
    Learn,C#
    I want to display the output as
    HappyCodingXYZCollage
    LearnC#XYXCollage
    The below is the code I have tried so far.
     // .Reading a CSV
                var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
                List<string> listA = new List<string>();
                            while (!reader.EndOfStream)
                    var line = reader.ReadLine();
                    string[] values = line.Split(',');
                    listA.Add(values[0]);
                    listA.Add(values[1]);
                    listA.Add(values[2]);          
                    // listB.Add(values[1]);
                foreach (string str in listA)
                    //StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
                    Console.WriteLine("the value is {0}", str);
                    Console.ReadLine();
    Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
    Best Regards,
    Raja Village Sync
    Beginer Coder

    Very simple example:
    var column1 = new List<string>();
    var column2 = new List<string>();
    using (var rd = new StreamReader("filename.csv"))
    while (!rd.EndOfStream)
    var splits = rd.ReadLine().Split(';');
    column1.Add(splits[0]);
    column2.Add(splits[1]);
    // print column1
    Console.WriteLine("Column 1:");
    foreach (var element in column1)
    Console.WriteLine(element);
    // print column2
    Console.WriteLine("Column 2:");
    foreach (var element in column2)
    Console.WriteLine(element);
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • How to display the data from database(MS access) to a textbox

    anyone know ?

    how to display the data from database(MS access) to a
    textboxThe reply hasn't changed over these years. Read the tuutorial on how to fetch the data. You can display it anywhere you feel like. :)
    http://java.sun.com/docs/books/tutorial/jdbc/

  • How to read the output from 'tlist entersq'

    Hi
    Where can I find information on interpreting the output from 'tlist entersq' ?
    We have a box that seems to go into a lock, no communication through network, nor terminal ttya.
    I did an abort on the panel and sync to force a memory dump
    I'm using scat to investigate the result.
    SolarisCAT(vmcore.0)> thread summary
            reference clock = panic_lbolt: 0x114c6f9                             
       11   threads ran since 1 second before current tick (11 user, 0 kernel)
       11   threads ran since 1 minute before current tick (11 user, 0 kernel)
       63   TS_RUN threads (50 user, 13 kernel)
        2   TS_STOPPED threads (0 user, 2 kernel)
       10   TS_FREE threads (0 user, 10 kernel)
        0   !TS_LOAD (swapped) threads
        0   threads trying to get a mutex
        0   threads trying to get an rwlock
      128   threads waiting for a condition variable (89 user, 39 kernel)
        1   threads sleeping on a semaphore (0 user, 1 kernel)
       12   threads sleeping on a user-level sobj (12 user, 0 kernel)
        7   threads sleeping on a shuttle (door) (7 user, 0 kernel)
        0   threads in biowait()
        1*  threads in entersq() (1 user, 0 kernel)
       63   threads in dispatch queues (50 user, 13 kernel)
      225   total threads in allthreads list (159 user, 66 kernel)
        0   thread_reapcnt
        5   lwp_reapcnt
      230   nthread
    SolarisCAT(vmcore.0)>  tlist entersq
      thread        pri pctcpu           idle   pid         wchan command
      0x300027dd7a0 142  0.024       1m41.83s  1684 0x300007fff18 /sz/tcp/bin/tig_tcp.bin
       1 thread in entersq() found.
    threads in entersq() by syncq:
    1 thread: 0x300027dd7a0
    syncq @ 0x300007ffee0
    sq_count: 0    sq_head: 0x30001de6e80  sq_tail: 0x30001de6e80
    sq_evhead: 0xcff010000 sq_evtail: 0x100000000cafe      sq_nqueues: 0
    sq_needexcl: 0 sq_private: 0x3000155dd18       sq_next: 0xbaddcafe
    sq_pri: 276
    sq_occount: 0
    sq_flags: 0x200 ()
    sq_type:  0x0
    sq_svcflags:  0x0
    sq_lock @ 0x300007ffee0:
      adaptive mutex:  owner: 0x0  waiters: false
    per-module syncq for ip
    streamtab @ 0x14ad6b0
    qinit     @ 0x14ad570
    modinfo   @ 0x14ad540
    queues:1 sq_msgs:1 sq_mblks:36 sq_alloc:13247273932581836904
    SolarisCAT(vmcore.0)> thread 0x30001de6e80
    ==== user thread: 0x30001de6e80 address translation failed for pid: 32 bytes @ 0x452e0d0a2a2a2a20
    pid: 0  PIL: 3 ====
    cmd:
    t_wchan: 0x30001dd5640 
    t_stk: 0x1263bfc  sp: 0x0  t_stkbase: 0x30002aa3ec0
    t_pri: 0  pctcpu: 0.000036  t_lwp: 0x30001de0d80  machpcb: 0x30001dd4c08
    t_procp: 0x30002df2900  p_as: 0x30002df2978  hat: 0x6420373031206368address translation failed for hat_3: 80 bytes @ 0x6420373031206368
      cnum: 0x0
    address translation failed for hat_3: 80 bytes @ 0x6420373031206368
      size: 4984936174853958176  rss: 0
    bound cpuid: 768  bound psrset: 768  last cpuid: 0 
    idle: -17371523 ticks (190888 days 10 hours 34 minutes 34.26 seconds)
    start: Wed Jul 10 21:34:52 6497
    age: -3297429488912 seconds (38164693 days 3 hours 48 minutes 32 seconds)
    swapped out: 3298566244800 (190888 days 4 hours 48 minutes 49.63 seconds later)
    interrupted (pinned) thread: 0x30001de6ef8
    tstate: unknown state
    tflg:   T_INTR_THREAD - thread is an interrupt thread
            T_WOULDBLOCK - for lockfs
            T_DONTBLOCK - for lockfs
            T_DONTPEND - for lockfs
            WAITCVSEM - waiting for a lwp_cv or lwp_sema on sleepq
    tpflg:  TP_CHKPT - thread is being stopped via CPR checkpoint
            TP_PRVSTOP - thread is virtually stopped via /proc
            TP_MSACCT - collect micro-state accounting information
            TP_STOPPING - thread is executing stop()
    tsched: none set
    pflag:  SLOAD - in core
            SLOCK - process cannot be swapped
            SPREXEC - process is in exec() (a flag for /proc)
            SSCONT - SIGCONT has been posted to the process
            SBPTADJ - adjust pc on breakpoint trap (/proc)
            SUGID - process was result of set[ug]id exec
            SJCTL - SIGCLD sent when children stop/continue
            SNOWAIT - children never become zombies
            SVFORK - process resulted from vfork
            SVFWAIT - parent of vfork waiting for child to exec
            EXITLWPS - have lwps exit within the process
            SWAITSIG - SIGWAITING sent when all lwps block
            HOLDFORK1 - hold lwps in place (not cloning)
            SMSACCT - process is keeping micro-state accounting
    pc: 0x30003e63600       0x30003e63600:  illegaltrap     0x00000000
    -- no stack --

    Hello ejp,
    First of all i thank you for the reply.
    I explain the process which i am doing in side the thread.
    After connecting to the remote machine, it asks another password.
    so i read the output after connecting. if it equals "password:", then write the 2nd password. then i read the output. it will be like "system>" . if this prompt comes like this, then i write the super user name and super user password. then the prompt will be like "system#". then i write the command which i need to execute and read the output whether the command is success or not.
    So after every output read, i interrupt the thread using interrupt() method. its working fine if i execute via GUI ie, click the button. But its not working when i scheduled this job in a scheduler ie, it will be executed when the time elapsed.
    Give an idea to fix this bug please.
    rgds
    tskarthikeyan

Maybe you are looking for

  • IPod Classic not showing in iTunes

    Hi guys I am trying to upload new songs onto my iPod Classic (30GB Black). The device is working fine but when I connect it to iTunes it doesn't appear as a device (although it appears in Finder as a 'drive'). I've made sure that all of my Mac update

  • Dual Monitor Support NEEDED

    [ Mac OS 10.4.8 - G$ QuickSilver Dual 2.0 - two large monitors ] I just tried Lightroom for the first time today, and was shocked to see that there is no support for detaching panels onto a second monitor. This is a deal-breaker for me -- lots of gli

  • My last import dissapeared

    The event album is there with the apropriate dates, but is empty. I had reviewed the photos after import and knew they successfully transfered. The trash has not been emptied and they are not in there so there was no accidental mass delete. I cannot

  • BI Content for IS-U Consumption and Emission

    Hello folks, any idea what is the extractor for ISU reporting that reports on consumption and Emission?

  • Contacts arranged by first name

    Is it possible to change the contact list so it list by last name instead of first name?  How?