[brailleblaster] Re: BrailleBlaster in command console windows 7

  • From: "Cearbhall O'Meadhra" <cearbhall.omeadhra@xxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Tue, 15 Jul 2014 17:36:00 +0100

Michael,

You are quite right! I had not recognised the content of the source file
until you pointed it out to me. That is the result of option 2 which calls
brailleBlaster with a partial command line where the user only specifies the
input file and so the result is correctly being displayed back to the
console.

In my batch program I have modified all the calls to include the "2>" output
to the log file. For example, here is the command for option3 (full command
line mode specifying both input and output files)
java -jar brailleblaster.jar translate %bPath%%inputFile%
%bPath%%outputFile% 2> brlblaster.log

brlblaster.log is being generated and placed in the
c:\programs/brailleblaster directory. His is all very satisfactory. There is
no feedback to the console so the "2>" has done the trick for the needs of
my users.

Many thanks to everyone. I am delighted to know that I now have a log file
that I can examine if anything goes wrong in the future. 

I'll try the new version of brailleblaster and see if I need to pipe the
output with "2> brlblaster.log" any more. With your new amendment isn't that
material now going to the official log file? If so, I can drop it from my
batch program

All the best,

Cearbhall 

M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx



Try Spam Reader (http://www.spam-reader.com) for free now!
 
-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Michael Whapples
(Redacted sender "mwhapples@xxxxxxx" for DMARC)
Sent: 15 July 2014 15:11
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: BrailleBlaster in command console windows 7

Hello,
What you included in your message looks like it might be intended output,
but I am not very familiar with the command line interface.

After you got BrailleBlaster to perform the translation it looks like the
output is the translation into Braille.

To have the translation sent to a file call BrailleBlaster like:
java -jar brailleblaster.jar translate infile.xml outfile.utd 
2>brailleblaster.log

Michael Whapples
On 14/07/2014 23:40, Cearbhall O'Meadhra wrote:
> Michael,
>
> Interesting point! The output is different now. I used:
> java -jar brailleblaster.jar translate %bPath%%inputFile% 2> 
> brlblaster.log And this is the output to the screen (still not going 
> to the output.log file
> though!):
>
> Administrator:  brailleBlaster process Assistant
> *     3. Automatically translate input file to nominated output file.
> *
> *     4. Emboss the translated braille version of the input file.
> *
> *
> *
> *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *
> *  *
> *
> Select an option or q to exit 2
> The file location is  C:\Users\Cearbhall\Documents\braille\
> Do you wish to use this location?
> [Y,N]?Y
> Do you wish to use beep.txt as the input file?"
> [Y,N]?Y
>    8copy con _+beep.txt"_: f !
> -m& l9e %d d t4 8con0 is a
> special file"n1 t /&s = 83sole0
> 7ie keybo>d71 x copies :at y
> type 6! _+beep.txt_: file4
>    ,3trol-;,z w 5d ! 8copy0
> process4
>    7,3trol-;,g wd probably n "w
> if y type x 9 say ,notepad7
>
> Could you suggest the actual command line string for me? I am new to 
> this type of work, sorry. I want to hide this trace-type output from 
> the user but still capture it in a log file. I cannot modify the java 
> source code so I have to do it in the batch program if possible.
>
> All the best,
>
> Cearbhall
>
> M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx
>
>
>
> -----Original Message-----
> From: brailleblaster-bounce@xxxxxxxxxxxxx
> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Michael 
> Whapples (Redacted sender "mwhapples@xxxxxxx" for DMARC)
> Sent: 14 July 2014 22:02
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] Re: BrailleBlaster in command console 
> windows 7
>
> Hello,
> Logging output I believe is going to standard error (stderr). Try 
> using
> 2> instead of > in your redirection.
>
> Michael Whapples
> On 14/07/2014 21:34, Cearbhall O'Meadhra wrote:
>> Keith,
>>
>> I think it would be best in time to manage the logging. However, 
>> there will be times when it is useful again. For that reason, I would 
>> like to find a way to pipe it for now.
>>
>> I have tried the command line:
>>      java -jar brailleblaster.jar translate %bPath%%inputFile%   >
>> brailleblst.log
>>
>>
>> but this does nothing1
>>
>> I imagine the two input and output parameters are making the piping 
>> irrelevant to the brailleblaster.jar call. Any ideas?
>>
>>
>> All the best,
>>
>> Cearbhall
>>
>> M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx
>>
>>
>>
>>    
>> ---------------------------------------------------------------------
>> -
>> ------
>> -----
>> I use the free version of Spam Reader to get rid of spam. The 
>> Professional version doesn't have this disclaimer in outgoing emails.
>> Try Spam Reader (http://www.spam-reader.com) for free now!
>>    
>> -----Original Message-----
>> From: brailleblaster-bounce@xxxxxxxxxxxxx
>> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Keith 
>> Creasy
>> Sent: 14 July 2014 20:01
>> To: brailleblaster@xxxxxxxxxxxxx
>> Subject: [brailleblaster] Re: BrailleBlaster in command console 
>> windows 7
>>
>> Hi Cearbhall.
>>
>> That is all logging from LibLouisUTDML and is telling you what 
>> actions and styles are being applied. We really do need to turn down 
>> the default logging though because that's a bit much most of the time.
>>
>> Keith
>>
>>
>> -----Original Message-----
>> From: brailleblaster-bounce@xxxxxxxxxxxxx
>> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Cearbhall 
>> O'Meadhra
>> Sent: Monday, July 14, 2014 2:50 PM
>> To: brailleblaster@xxxxxxxxxxxxx
>> Subject: [brailleblaster] Re: BrailleBlaster in command console 
>> windows 7
>>
>> Hi Larry,
>>
>> Thanks for the welcome.
>>
>> I wonder if you can help me to understand what is being displayed on 
>> the command.cmd window when I run brailleblaster in batch mode under
> Windows 7?
>> Here is a typical output screen:
>>
>> Administrator:  brailleBlaster process Assistant 7ie keybo>d71 x 
>> copies :at y type 6! _+beep.txt_: file4 Finish end_style Begin 
>> start_style Finish start_style Begin insert_translation Begin 
>> end_style Begin insert_translation
>>     ,3trol-;,z w 5d ! 8copy0
>> process4
>> Finish end_style
>> Begin start_style
>> Finish start_style
>> Begin insert_translation
>> Begin end_style
>> Begin insert_translation
>>     7,3trol-;,g wd probably n "w
>> if y type x 9 say ,notepad7
>> Finish end_style
>> Begin start_style
>> Finish start_style
>> Begin end_style
>> Begin insert_translation
>> Finish end_style
>> ---------------------------------------------------------------------
>> -
>> ------
>> -----
>>
>> It looks like some sort of trace!
>>    I clear the screen after the brailleBlaster program has finished 
>> so that my batch menu appears clearly. However, the output above 
>> appears once the program is running and so I wonder if I can pipe it 
>> to a file, if it is important to retain it, or if I can suppress this 
>> output by a setting in brailleBlaster?
>>     
>>
>>
>> All the best,
>>
>> Cearbhall
>>
>> M: 0833323487  T: (01) 2864623  em: cearbhall.omeadhra@xxxxxxx
>>
>>
>>
>>
>>
>>
>>
>
>



Other related posts: