stdin/stdout Redirection

Discussion in 'Java' started by carbonrocket@gmail.com, Sep 19, 2006.

  1. Guest

    I dont know if anyone here can help or if I would be better going to a
    WIN32 group - but because its to do with the use of Java I hope in the
    correct place.

    I am planning on an app that allows other people exe's to communicate
    with it no matter what language or operating system they are using. The
    main app will launch the exe and as such will be able to have the stdin
    / stdout redirected to itself for communication using CreateProcess()
    (will figure out a *nix equivilant later on) method in the WIN32 API.

    I know this will work with exe's created in C/C++, VB and likely most
    other languages, however I am not sure whether it would work with a
    java application as they are not compiled binaries - can anyone
    reassure me as to whether or not it will work with java before I begin.

    Essentially the question is can the stdin/stdout of a Java app be
    redirected by the operating system when it launches?

    Cheers
    CBAR
     
    , Sep 19, 2006
    #1
    1. Advertising

  2. Paul Davis Guest

    wrote:
    > I dont know if anyone here can help or if I would be better going to a
    > WIN32 group - but because its to do with the use of Java I hope in the
    > correct place.
    >
    > I am planning on an app that allows other people exe's to communicate
    > with it no matter what language or operating system they are using. The
    > main app will launch the exe and as such will be able to have the stdin
    > / stdout redirected to itself for communication using CreateProcess()
    > (will figure out a *nix equivilant later on) method in the WIN32 API.
    >
    > I know this will work with exe's created in C/C++, VB and likely most
    > other languages, however I am not sure whether it would work with a
    > java application as they are not compiled binaries - can anyone
    > reassure me as to whether or not it will work with java before I begin.
    >
    > Essentially the question is can the stdin/stdout of a Java app be
    > redirected by the operating system when it launches?


    Yes

    > Cheers
    > CBAR
     
    Paul Davis, Sep 19, 2006
    #2
    1. Advertising

  3. Chris Uppal Guest

    wrote:

    > Essentially the question is can the stdin/stdout of a Java app be
    > redirected by the operating system when it launches?


    Yes.

    -- chris
     
    Chris Uppal, Sep 19, 2006
    #3
  4. Guest

    Cheers Guys
     
    , Sep 19, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Acaccia

    stdout redirection

    Acaccia, Jan 16, 2004, in forum: C++
    Replies:
    3
    Views:
    11,955
    Acaccia
    Jan 16, 2004
  2. Terry Gray

    os.system stdout redirection...

    Terry Gray, Aug 17, 2003, in forum: Python
    Replies:
    8
    Views:
    3,194
    baiste
    Oct 11, 2003
  3. Joel Wagner

    Redirection of stdout fails on Windows

    Joel Wagner, Oct 9, 2003, in forum: Python
    Replies:
    1
    Views:
    781
    Daniel Dittmar
    Oct 10, 2003
  4. Replies:
    0
    Views:
    118
  5. Tim Daneliuk
    Replies:
    19
    Views:
    144
    Tim Daneliuk
    Oct 24, 2013
Loading...

Share This Page