2

I am developing an application which displays the running processes in linux and if any of the process is not running start that process. All the actions should be performed by firing linux commands. Also create a log text file and insert the log in the processlog table in database.

Java code sample preferred. Urgent please.

Thanks In Advance.

1

1 Answer 1

2

ProcessBuilder is exactly what you need. Take a look at docs -

http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ProcessBuilder.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.