• Advertisement
Sign in to follow this  

Stream Redirection Question

This topic is 4625 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need a way to have a console app send input characters to a thread in order to shut it down (Pressing the Enter key shuts it down, but I need it to be automated). Basically, the problem is that we have a java app that doesn't have a built in schedular, and we need to be able to restart it at certain times, so I would imagine the easiest way would be to write a console app that starts up the java app, and safely shuts it down (by sending the Enter key to it's standard in). I have looked into Stream Redirection, but I can't seem to find an example or a function to use. I can use either C/C++ or Java. Please help! -Gordon

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement