[Coin-discuss] Trouble Capturing Sbb output with Linux redirect
John J Forrest
jjforre at us.ibm.com
Fri Feb 20 09:26:31 EST 2004
Steven,
I would think a cleaner approach would be to override the standard message
handler to do exactly what you want. I would start with Clp as part of
the unit test overrides the message handler. Look in Clp/Test at
MyMessageHandler.?pp and its use in unitTest.cpp.
John Forrest
steven.henderson at us.army.mil
Sent by: coin-discuss-admin at www-124.southbury.usf.ibm.com
02/20/2004 08:26 AM
Please respond to
coin-discuss
To
coin-discuss at www-124.southbury.usf.ibm.com
cc
Subject
[Coin-discuss] Trouble Capturing Sbb output with Linux redirect
Folks,
I am writing a web interface for COIN, specifically for Clp and Sbb.
I want to capture output from these, especially from Sbb. The idea
being folks could "check progress" as the model runs.
My first attempt was to pause Sbb every x nodes, use methods
to get best solution and current objective, write these to a database,
then restart. Is it possible to restart sbb after it times out or reaches
node/solution count?
My next thought was to just dump all Sbb output to a file, then read and
display the output as it runs. However, I am having major problems
getting output. When I run my application in the backgroud, the
output file is empty until Sbb terminates.
My app that invokes Sbb is wcSbb.
I invoke the process as follows:
nohup /COIN/webCOIN/wcSbb > /COIN/webCOIN/outfiles/myoutfile &
The process goes to background, but output file is empty until Sbb
terminates.
I am on a Redhat box (9.0)
I get the same thing if I try:
/COIN/webCOIN/wcSbb > /COIN/webCOIN/outfiles/myoutfile
I apologize if this turns out to be some linux setting. I just thought
maybe
someone else had encountered it as well.
Thank you,
Steve Henderson
_______________________________________________
Coin-discuss mailing list
Coin-discuss at www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20040220/0552838a/attachment.html>
More information about the Coin-discuss
mailing list