[texhax] Redirection towards «xdvi.log».
Stratos Paschos
paschos.s at gmail.com
Tue Mar 3 12:09:49 CET 2015
Hello,
the syntax "xdvi ....... 2>&1 | tee xdvi.log"
is for the Bourne type shells (sh or bash the most common).
for tcsh (or csh) use the following:
xdvi ....... |& tee xdvi.log
Stratos
On Tue, Mar 3, 2015 at 12:30 AM, Yves Perret <yves.perret at megamail.org> wrote:
> Hello Misters Hammond and Lueck,
>
> I tried the last proposal of Uwe Lueck, but even after adaptation of
> the latter to the «tcsh» shell, the file «xdvi.log» which is generate,
> is still empty, like shows it the following instructions' lines:
>
>> cd ~/ScientificVisual/Diagrammes\ en\ bâtonnets\ colorés/
>> xdvi algorigramme_des_étapes_d\'interprétation.dvi 2>&1 | tee
> xdvi.log
> Redirection de sortie ambigue.
>> xdvi algorigramme_des_étapes_d\'interprétation.dvi 2> &1 | tee
> xdvi.log
> Redirection de sortie ambigue.
>> xdvi algorigramme_des_étapes_d\'interprétation.dvi 2>&1 | xdvi.log
> Redirection de sortie ambigue.
>> echo $SHELL
> /usr/bin/tcsh
>> xdvi algorigramme_des_étapes_d\'interprétation.dvi | & tee xdvi.log
>> ls -l xdvi.log
> -rw-r--r-- 1 yperret users 0 mars 2 23:52 xdvi.log
>>
>
> Tomorrow, I shall try the suggestion of Mister Lueck.
>
> Yves Perret
>
> le Mon, 02 Mar 2015 10:31:58 -0800
> William F Hammond <hmwlfsr at yahoo.com> a écrit:
>> Yves Perret <yves.perret at megamail.org> writes:
>>
>> > ...
>> > We notice that the «xdvi.log» file was not found beforehand and
>> that
>> > after
>> > its creation, the latter is empty !.
>> > ...
>> >> It might be helpful to provide that completely, e.g.,
>> >>
>> >> xdvi ... | tee xdvi.log
>> >>
>> >> where the dots represent the .dvi name, and copy the content of
>> >> xdvi.log into the next posting.
>>
>> So perhaps the error messages were sent to the 'standard error
>> stream'.
>> If that is a case, then in a Bourne-style shell, the command
>>
>> xdvi ... 2>&1 | tee xdvi.log
>>
>> should capture the messages.
>>
>> -- Bill
>>
>>
>
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax
mailing list