2

At the moment I have a console application. I would like to be able to exit the application, update through svn, recompile and then relaunch. This is running under a Linux environment. At the moment I'm not sure how I would be able to relaunch the application. Is there a way to do this?

2 Answers 2

1

You could create a file, say .relaunch, when you exit the application in the specified circumstance and have the compile script remove the file and start the application when it has finished compiling if the relaunch file exists.

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

Comments

1

There is a low tech way to do this - assuming you want it all done in code:

1) Have your app launch a separate process (then exit) that:
a) Calls the svn.exe (or get svnkit...) with args to get the latest source
b) Calls you ant or whatever script to compile
c) Exec your newly compiled app
d) Exit

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.