Synchronized iteration through command line tasks via java
$30-100 USD
Status
Publicerad över 18 år sedan
$30-100 USD
Betalning vid leverans
Greetings! I have a quick software request. I can't imagine that it would take more than a day to complete. I'm having trouble with the sequential aspect of the process. Briefly what I'm trying to do is execute a process from the command line using the Process class. It works well enough but the problem is that I have a loop of 30 command lines to execute, and as I go through the loop, it creates and executes all 30 of the processes without waiting! All attempts to use waitFor() fail. The reason why the processes must be done sequentially is that the first process actually creates a file that the remaining 29 processes will read and update. Each process must wait its turn. So, there are many ways to address this from a client / server aspect (not necessary, but would be interesting), to a timer, to a 2 thread model, to the way I was attempting to do it above. I'm leaning towards a 2 thread model, as this would seem to be the most elegant, scalable and efficient way of doing this. Pseudocode is attached. If you would like the exact code I've created myself, I can send that to you within 12 hours. Regards, John
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Linux / Sun Solaris