Sign in to follow this  
alphatrak

Stream Redirection Question

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this