[AMPL 2861] redirecting printf statements to file

View: New views
2 Messages — Rating Filter:   Alert me  

[AMPL 2861] redirecting printf statements to file

by pioneer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I was wondering if it is possible to issue one command so that all
subsequent printf statements are redirected to a specific file.

I am familar with the printf  "  "  > file.out however I was wondering
if it was possible to avoid having to use the > operator in every
printf statement.


The "log" command is a bit unsatisfactory here since it redirects ALL
output including solver output.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---


[AMPL 2895] Re: redirecting printf statements to file

by Robert Fourer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



There is no option to cause only the output of printf statements to be
redirected.

Bob Fourer
4er@...


> -----Original Message-----
> From: ampl@... [mailto:ampl@...]
> On Behalf Of pioneer [spencer.math@...]
> Sent: Sunday, October 04, 2009 7:26 AM
> To: AMPL Modeling Language
> Subject: [AMPL 2861] redirecting printf statements to file
>
>
> Hi,
>
> I was wondering if it is possible to issue one command so that all
> subsequent printf statements are redirected to a specific file.
>
> I am familar with the printf  "  "  > file.out however I was wondering
> if it was possible to avoid having to use the > operator in every
> printf statement.
>
>
> The "log" command is a bit unsatisfactory here since it redirects ALL
> output including solver output.
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to ampl@...
To unsubscribe from this group, send email to ampl+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/ampl?hl=en
-~----------~----~----~----~------~----~------~--~---