Re: Batch Mode Output
- To: mathgroup at smc.vnet.net
- Subject: [mg63567] Re: Batch Mode Output
- From: dh <dh at metrohm.ch>
- Date: Thu, 5 Jan 2006 06:02:38 -0500 (EST)
- References: <dpim09$jqv$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Marcello, $Version 5.1 for Microsoft Windows (October 25, 2004) With Print.m containing (no CR/LF at the end): Run["Echo Operational System Output"]; I get no output: With Print.m containing an additional CR/LF: Run["Echo Operational System Output"]; I get the output: Operational System Output ===> therefore, in order that a line will be executed, it must terminate with a CR/LF (or whatever your OS uses as a line terminator). Same thing applies to Print statements Daniel Marcelo Mayall wrote: > In some situations when running a program in batch mode, it is interesting that the output be returned via operational system prompt (in my case Microsoft Windows XP). > At first, we could imagine the following batch file: > > (***** Routine Print.m *****) > Run["Echo Operational System Output"] > > However, when executing Print.m in batch mode, no output is returned to the prompt. The output is returned only to the output file Print.out: > > C:\> math <Print.m> Print.out > > C:\> type Print.out > In[1]:= Operational System Output > > Any idea ???? >