Redirecting output from 'cmd.exe /c'

I am using Powershell 2009 on a WIN-Server 2008 R2
I have seen several suggestions on how to "redirect" the output generated by a 'cmd.exe /c', but none of the suggested solutions were successful.
I have a simple cmd
cmd.exe /c my_program.cmd $file.basename
This process creates a lot of screen output and this command is in a loop of all files in a directory.
I want to capture the output to a file "$lgfile"
I have used
{content}
>> $lgfile
{content}
Out-file -filepath $lgfile [no output]
{content}
`$lgfile 2`>>`&1 [error '&" is reserved for future use]
I would be grateful for any suggestions
Also, the reason I am using "cmd.exe /c" is because that is the only method i have been able to use successfully (my_program.cmd is calling an ORACLE compiler! and all other methods to execute this compiler did not work except as a cmd-file)

I usually just pipe to Set-Content:
cmd.exe /c my_program.cmd $file.basename | Set-Content $lgfile
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Similar Messages

  • Redirecting output from plink

    I am currently trying to write a function that runs plink and captures the output from that process.  When I try StandardOutput I get nothing and when I try StandardError I get "Unable to read from standard input: The handle is invalid."  I can only assume that this means I am trying to read while plink is waiting for input.  I am also passing my command via a text file called apCommands.txt.  When I run this command manually it works and gives me the required output, I just can't figure out why I can't redirect that output so I can store it in a results file.  Here is the code I have right now.
    string pArgs = "-m \"" + ABSPATH + "\\apCommands.txt\" -ssh myHost -l user -pw password";
    string output;
    if (File.Exists(ABSPATH + "\\apTest.txt"))
    File.Delete(ABSPATH + "\\apTest.txt");
    StreamWriter apTest = new StreamWriter(ABSPATH + "\\apTest.txt");
    Process runAP = new Process();
    ProcessStartInfo apInfoStart = new ProcessStartInfo(ABSPATH + "\\plink.exe");
    apInfoStart.Arguments = pArgs;
    apInfoStart.RedirectStandardOutput = true;
    apInfoStart.CreateNoWindow = true;
    apInfoStart.UseShellExecute = false;
    runAP.StartInfo = apInfoStart;
    runAP.Start();
    output = runAP.StandardOutput.ReadToEnd();
    runAP.WaitForExit();
    apTest.WriteLine("Standard Output");
    apTest.WriteLine(output);
    apTest.Close();
    runAP.Close();
    Thanks,
    Joe

    I see.  I wasn't aware that it wasn't a reliable way to connect to ssh.  As for the error message that was from standardError.  I think the process may have been waiting for input when I was trying to read from StandardOutput and thats why I got that error message.  Also instead of redirecting StandardOutput I tried redirecting the output directly into a file by running a cmd process and passing the commands I wanted to run through StandardInput.  The underlined section is all I changed besides running this inside of a cmd process.  This did work for me but I would rather know how to do it using StandardOutput. 
    string dArgs = "cd \"" + ABSPATH + "\"";
    string pArgs = "plink -ssh myHost -m \"" + ABSPATH + "\\apCommands\" -l user -pw password > test.out";
    Process runAP = new Process();
    ProcessStartInfo apInfoStart = new ProcessStartInfo("cmd");
    //apInfoStart.Arguments = pArgs;
    apInfoStart.RedirectStandardInput = true;
    apInfoStart.RedirectStandardOutput = true;
    apInfoStart.CreateNoWindow = true;
    apInfoStart.UseShellExecute = false;
    runAP.StartInfo = apInfoStart;
    runAP.Start();
    runAP.StandardInput.WriteLine(dArgs);
    runAP.StandardInput.WriteLine(pArgs);
    I haven't tried reading the StandardOutput from this piece of code, but I will probably try it.
    Thanks,
    Joe

  • How to end a process from cmd.exe?

    I need to open and close a word file(Test.doc) from my java program. I managed to open the file using cmd shell, but I don't know how to close the opened file. Does anybody have a suggestion? Below is my code. Thanks.
        Runtime r = Runtime.getRuntime();
        Process p = null;
        try {
        p = r.exec("cmd.exe /c start Test.doc");
        catch (Exception e) {
          System.out.println("Error opening the file.");
        }

    Try something like this:
    Runtime r = Runtime.getRuntime();
    Process p = null;
    String command = "\"C:\\Program Files\\Microsoft Office\\Office12\\winword\"";
    String file = "\"c:\\Test.doc\"";
    try {
        p = r.exec(command + " " + file);    //to open the file in MS Office Word
        Thread.sleep(30000);    //keep it open for 30secs
        p.destroy();    //close the process and hence the file
    }catch (Exception e) {
        System.out.println("Error opening the file.");
    }Edited by: Sourav-Sipani on Jul 28, 2008 1:56 AM

  • Redirecting output from launchd?

    I'm in the process of converting my existing cron tasks over to launchd and encountering a small-ish annoyance. I've gotten into the habit of writing cron commands like this, appending the output to a log file:
    some_command andaparameter >> /the/full/path/to/the/logfile.txt
    This just gives me a quick-and-dirty way to log activity from cron commands. When I do that in launchd, it doesn't go the expected location, but rather gets written out to the system log. Does launchd not support >> redirection like that or do I need to do it in some other way?

    An excellent gui shell is lingon http://tuppis.com/lingon/
    Apple Tutorial: Getting Started with launchd http://developer.apple.com/macosx/launchd.html
    launchd in Depth: http://www.afp548.com/article.php?story=20050620071558293
    launchd: One Programm to Rule Them All – Video presentation of launchd: http://video.google.com/videoplay?docid=1781045834610400422
    I've looked around on the web for a good run-down of what it can do and some examples, but found very little. Seems like a great tool. I'm surprised there aren't more examples and tutorials out there showing what it can do.

  • Funky output from SQLCMD.EXE /L

    I have a Clustered environment - both nodes with SQL 2012 on Windows 2012 Server.
    On the Passive node, SQLCMD.EXE /L lists the found servers as expected, e.g.,
    Servers:
        MYCLUSTER1\CLUSTER
    However on the Active node, it gives some strange output, i.e.,
    Servers:
        ;UID:Login ID=?;PWD:Password=?;Trusted_Connection:Use Integrated Security=?;
    *APP:AppName=?;*WSID:WorkStation ID=?;
    Anyone know what this means?
    Does this mean my cluster configuration and/or registry is messed up?
    Thanks.

    Hi there,
    As I understand, the "SQLCMD -L" worked well in first node in a cluster, but it didn't work as expected when was working in second node(whether it is active or passive). If I have misunderstood, please don't hesitate to let me know.
    Basically, the command "sqlcmd -L" works as follows:
    SQLCMD utilize component SQLBrowserConnect to broadcast an UDP request via port 1434 on the network(within in the same router)
    Machines, which are on the same network, receive the request
    The machines, which have SQL Server installed, SQL Server Service(s) is(are) running and SQL Server Browser service enabled, response the request via port 1434 within 3 seconds. Here is an example for the response data:
    ServerName <computer1 for example>
    InstanceName <MSSQLSERVER for example>
    IsClustered <Yes, or No>
    Version <11.0.3000.0 for example>
    tcp <1433 for example>
    SQLBrowserConnect receives the response and output the connection string like: "HOST:Server={red,blue,green};UID:ID=?;PWD:Password=?"
    SQLCMD exact the server(s) from the connecting string
    So, in one of the following cases, there won't have server(s) to be listed:
    UDP 1434 is blocked by Firewall
    SQL Server service(s) is(are) not running
    SQL Server Browser service is not running
    Due to network latency, SQLBrowserConnect response after 3 seconds later
    Network infrastructure components, particular router limit the broadcast request
    In this case, if we are running in the following scenario, we will get the result as you posted:
    The UDP 1434 is not enabled(or is blocked) in all nodes
    The SQL Server Browser service is only running in the first node
    The port 1434 is being used by other application. We can this by command netstat -ano, or use tool PortQuery to confirm it
    Note:
    1. Since there is a loopback address in every machine, the SQLCMD can get expected result whether the port is blocked by the firewall or not.
    2. If there is no server in the outputConnectionString(between {}), the output string for sqlcmd will be something like this: ;UID:Login ID=?;PWD:Password=?;Trusted_Connection:Use Integrated Security=?;*APP:AppName=?;*WSID:WorkStation ID=?
    Here you will find more details about the SQLBrowserConnect function :
    http://msdn.microsoft.com/en-us/library/ms714565 (v = vs.85 ) aspx .
    We can also use the PortQryUI to check whether port 1434 is opened:
    http://www.microsoft.com/download/en/details.aspx?id=24009
    Thanks,
    Jinchun Chen

  • Redirect output from "do script" routine

    Don't know about you, but I find nothing more frustrating than having syntax that I worked out successfully at a previous time, but can't reconstruct now!
    The present dilemma:
    I'm doing a "do script" routine (not a do shell script routine) where I want to redirect the output to a desktop file, but I haven't been able to get the redirect syntax correct.
    Entered in Terminal directly, the command and redirect work fine; the pertinent part of the command is:

    Then it would help if you posted the command you're trying to use.
    The chances are it's an issue of escaping - certain characters need to be escaped in AppleScript as well as the shell in order for them to work. But in general, this should work:
    tell application "Terminal"
    do script "/path/to/command -option -otheroption > /path/to/output"
    end tell

  • Unable to start certmgr in local machine mode from CMD

    where this question goes?
    I need to start "certmgr.msc" from "cmd.exe" on "localMachine" repository so that I can import\export certificates. I have tried the following commands but the "certmgr.msc" keeps opening on "currentUser".
    certmgr.msc -s -r localMachine root
    mmc.exe certmgr.msc -s -r localMachine root
    certmgr.msc -v -s -r localMachine my

    I'd try them over here.
    https://social.technet.microsoft.com/Forums/windows/en-US/home?category=w7itpro#category=w8itpro%2Cw7itpro&filter=alltypes&sort=lastpostdesc&content=Content
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Checking existence of command in cmd.exe

    I want to run somone from cmd.exe using some procedure, for example WEBUTIL_HOST.HOST ('cmd / c start iexplore' | | url)
    Can I somehow check before executing, that command exists and that it will be execute?
    Edited by: Ihavoker on 04.02.2011 16:42

    InoL wrote:
    HOST doesn't return an error when the OS command returns an error. HOST only fails when the HOST call itself fails. So checking form_failure is usually not what you want.
    However, in your case you should try:
    HOST ('cmd / c start ' | | url);
    If you just start an URL, Windows will automatically look for the default browser.I understand, it might seem strange.
    Unfortunately, it is necessary to open a web page only IE. However, the browser by default does not necessarily IE. And the forms should check, the IE installed. Ie Command HOST ('cmd / c iexplore' | | url); executed. Just not sure that IE is installed in the default directory.
    That is a problem... :(
    Edited by: Ihavoker on 07.02.2011 12:16

  • Giving input to running EXE & getting output from it

    Hi there,
    I want to invoke an EXE file using runtime.exec() & also want to give some input to it when it's in running state & also want to trace the output of that EXE.
    I tried it using PipedStream but failed to do this,
    please suggest something.
    Thanks In Advance,
    parag

    Here is my code.......
    //Pipe Writer class
    import java.io.*;
    public class Pipe_Writer extends Thread {
         PipedWriter pWriter = new PipedWriter();
         public Pipe_Writer() {}
         public PipedWriter getPipedWriter() {
              return pWriter;
         public void run() {
              Process p = null;
              try {
                   p = Runtime.getRuntime().exec("cmd");
              } catch (IOException e) {
                   e.printStackTrace();
              BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
              BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
              BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
              String line;
              String rd = "";          
              try {
                   rd = reader2.readLine();
                   System.out.println(rd);               
              } catch (IOException e1) {
                   e1.printStackTrace();
              try {
                   // writer.write("dir\n"); //writing to process
                   writer.write(rd + "\n");
                   writer.flush();          
                   while ((line = reader.readLine()) != null) {
                             System.out.println(line);
                             pWriter.write(line);  //writing to pipe
              } catch (IOException e) {
                   e.printStackTrace();
    }// Pipe reader class
    public class Pipe_Reader extends Thread{
         PipedReader pReader;
         public Pipe_Reader(Pipe_Writer writer)throws IOException{
              pReader = new PipedReader(writer.getPipedWriter());
         public void run(){
              try {               
                   while(true){
                        System.out.println((char)pReader.read());  //Reading from pipe
              } catch (Exception e) {
                   e.printStackTrace();
    }// main method
    public static void main(String[] args)throws IOException {
              Pipe_Writer writer = new Pipe_Writer();
              Pipe_Reader reader = new Pipe_Reader(writer);
              writer.start();
              reader.start();
         }

  • Running a CMD.exe from PowerShell with arguments

    Hello guys, I am working with a driver backup program that I need to automate. I am using Power shell to run a few other tasks, like check the OS version and create a folder based on the system type for drivers. We deploy many different devices and needed
    a way to automate. That is neither here nor there. Here is what I am trying to run, but the CMD, will not seem to pick up the arguments. If I run from the CMD prompt, it will run as expected, but when I lick it off with Power shell, I get a few errors. 
    Here is what I have:
    $command = @'
    cmd.exe /C C:\DriverBU\DrvBK.exe MODE="BACKUP" BKPATH="C:\TempDrivers" BKDESC="Drivers" BKFILE="Backup %NOW%  %COMPUTERNAME%.bki" BKPATHFTM="%COMPUTERNAME%" BKDEVFMT="%DEVNAME%" BKDATEFMT=""
    OPT="HW"
    Invoke-Expression -Command:$command
    This will open the program, however, will not run the arguments.
    Thoughts?
    Thank you!
    Paul
    Duramaxster

    Hello guys, I am working with a driver backup program that I need to automate. I am using Power shell to run a few other tasks, like check the OS version and create a folder based on the system type for drivers. We deploy many different devices and needed
    a way to automate. That is neither here nor there. Here is what I am trying to run, but the CMD, will not seem to pick up the arguments. If I run from the CMD prompt, it will run as expected, but when I lick it off with Power shell, I get a few errors. 
    Here is what I have:
    $command = @'
    cmd.exe /C C:\DriverBU\DrvBK.exe MODE="BACKUP" BKPATH="C:\TempDrivers" BKDESC="Drivers" BKFILE="Backup %NOW%  %COMPUTERNAME%.bki" BKPATHFTM="%COMPUTERNAME%" BKDEVFMT="%DEVNAME%" BKDATEFMT="" OPT="HW"
    Invoke-Expression -Command:$command
    This will open the program, however, will not run the arguments.
    Thoughts?
    Thank you!
    Paul
    Duramaxster
    Part of your problem is that you cannot use @''@  (a here string) to specify a command because it retains the line breaks.
    ¯\_(ツ)_/¯

  • 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

  • Interacting with cmd.exe

    Hi all,
    i dunno if this has been asked before, but my problem is to let the user interact with an executable ran via "cmd.exe /c executable".
    i have an executable program that awaits a response from the user, but when i used the Streams provided by java.lang.Process after many scenarios i noticed that the process inputStream provides me with the output only when the program is finished, while it returns no text while the program is waiting for response
    as an example, my problem looks like :
    try {
                Process p = Runtime.getRuntime().exec("cmd.exe /c mysql -u toto");
                BufferedReader reader = new BufferedReader(
                        new InputStreamReader(p.getInputStream()));
                  String s = null;
                while ((s = reader.readLine()) != null) {
                        System.out.println(s);
    } catch (IOException ex) {
                ex.printStackTrace();
    }the mysql command would show "enter password : " or something like that, but this program will not show it...unless the mysql is finished
    any ideas? thanks :)

    that's right, i tried to look for classes that provide "live streams" in java.io ... i thought the PipedReader and PipedWriter could do it, but i need to get the program's reader and writer for this (and i don't know how to do that...) or maybe those classes are unnecessary and there is another way to do it?

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

  • JVM can't find cmd.exe

    hello
    i try to create a java stored procedure that allows to execute shell commands such as move or copy of files.
    my java class looks like:
    import java.io.*;
    public class Host {
    public static void executeCommand(String command) {
    try {
    String[] finalCommand;
    if (isWindows()) {
    finalCommand = new String[4];
    finalCommand[0] = "C:\\WINDOWS\\system32\\cmd.exe";
    //finalCommand[0] = "cmd.exe";
    finalCommand[1] = "/y";
    finalCommand[2] = "/c";
    finalCommand[3] = command;
    else {
    finalCommand = new String[3];
    finalCommand[0] = "/bin/sh";
    finalCommand[1] = "-c";
    finalCommand[2] = command;
    final Process pr = Runtime.getRuntime().exec(finalCommand);
    new Thread(new Runnable(){
    public void run() {
    BufferedReader br_in = null;
    try {
    br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String buff = null;
    while ((buff = br_in.readLine()) != null) {
    System.out.println("Process out :" + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_in.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process output.");
    ioe.printStackTrace();
    finally {
    try {
    br_in.close();
    } catch (Exception ex) {}
    }).start();
    new Thread(new Runnable(){
    public void run() {
    BufferedReader br_err = null;
    try {
    br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String buff = null;
    while ((buff = br_err.readLine()) != null) {
    System.out.println("Process err :" + buff);
    try {Thread.sleep(100); } catch(Exception e) {}
    br_err.close();
    catch (IOException ioe) {
    System.out.println("Exception caught printing process error.");
    ioe.printStackTrace();
    finally {
    try {
    br_err.close();
    } catch (Exception ex) {}
    }).start();
    catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    public static boolean isWindows() {
    if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1)
    return true;
    else
    return false;
    then i wrote a wrapper procedure like that:
    CREATE OR REPLACE PROCEDURE Host_Command (p_command IN VARCHAR2)
    AS LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String)';
    After that i granted the following permissions:
    EXEC Dbms_Java.Grant_Permission('CYTASTAR09', 'java.io.FilePermission', '<>', 'read ,write, execute, delete');
    EXEC Dbms_Java.Grant_Permission('CYTASTAR09', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC Dbms_Java.Grant_Permission('CYTASTAR09', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    exec dbms_java.grant_permission('CYTASTAR09', 'SYS:java.io.FilePermission', '<<ALL FILES>>', 'execute' );
    everything compiles fine and i'm able to use the java part as standalone application. but when i try to use it from oracle, like this:
    CALL DBMS_JAVA.SET_OUTPUT(1000000);
    BEGIN
    Host_Command (p_command => 'move C:\test.gif C:\test2.gif');
    END;
    I always get the following error message:
    can't exec: C:\WINDOWS\system32\cmd.exe doesn't exist
    Does anyone know how to solve the problem?
    regards mirko

    Hi,
    You can refer this link. It shows you how to create a Java Stores Procedure to execute OS commands.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:11627080439344761340::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241
    Thanks,
    Khalid

  • Redirect output to jsh

    Hi there!
    I am working on a simple java shell in Windows XP at the moment which simply parses an entered command and passes it to ProcessBuilder as a list.
    It works ok - the process startsas expected - the only problem is I cannot see any output from the processes, nor can I figure out a way to redirect STDOUT to the running java shell from XP (which is what I really want).
    Here is my code so far - as I said, it's fairly basic at the moment.
    public class shell {
         public void start()throws java.io.IOException {
              String commandLine;
              BufferedReader console = new BufferedReader
              (new InputStreamReader(System.in));
              while(true)  {
                   System.out.print("jsh>");
                   commandLine = console.readLine();
                   if(commandLine.equals(""))
                        continue;
                   else process(commandLine);
                        continue;
         private void process(String cmd)
              String command = cmd;
              String[] commsplit = command.split("\\s");
              ProcessBuilder pb = new ProcessBuilder(Arrays.asList(commsplit));
              try {
              pb.start();
              catch (IOException ioe) {
                   System.err.println("Unknown command or input. Please try again");
         public static void main(String[] args)throws java.io.IOException {
              shell shell1 = new shell();
              shell1.start();
    }Any pointers in the right direction would be most appreciated.

    You need to process the stdout and stderr of the Process. This http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html shows you how to do it safely!

Maybe you are looking for

  • How do I move photos onto an external HD?

    Help!  My icloud storage is full! I have an iphone, a macbook and an ipad.  I am pretty sure most of my photos are doubled if not ripled on these devices.  I want to move them out of the stream, cloud, and or library onto an external HD.  How do I do

  • Web Logic server 10.3.5 not running

    I am starting the WLS from START-->All Programs-->Oracle Classic Instance - asinst_1-->Start Web Logic Admin Server. When it starts it is giving error highlighted in bold.After Logging in the error in bold keeps coming.I am unable to understand this

  • How to view BMP images in JFileChooser.. for previewing..

    Friends, I was trying to open JFileChooser with preview of BMP images.. but remain unsuccessful.. it was showing JPG and GIF perfectly.. but in case of BMP it does not show anything.. am not using any filter though!! how to acheive this!! Thanking in

  • HT1689 how do i delete the yellow capacity what is that cause by i have an ipod touch 4th gen

    i have an ipod touch i want to rent a movie but its not letting me cause its telling me i dont have enough storage space and my itunes on my computer telling me that in the capacity its showing yellow in other what does that mean?how do i delete it ?

  • Using named parameters with an sql UPDATE statement

    I am trying to write a simple? application on my Windows 7 PC using HTML, Javascript and Sqlite.  I have created a database with a 3 row table and pre-populated it with data.  I have written an HTML data entry form for modifying the data and am able