[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ESC-Zeichen in Logdatei



Am 2008-04-26 19:23:16, schrieb Sven Eichler:
> Hallo
> 
> Ich möchte mir einige Ausgaben mittels Shellscript in eine Datei umlenken.
> z.B.
> 
> #!/bin/sh
> pstree > log.txt
> 
> Das ganze soll auf einem Etch und Sarge System funktionieren.
> Komisch ist nur, unter Etch sieht die Ausgabe sauber aus, aber unter Sarge 
> sind ESC-Zeichen mit drin:
> 
> initESC(0^OqwqESC(Bapache2ESC(0^OqqqESC(B10*[apache2]
> 
> Woran liegt das und wie kann ich das verhindern?

Wie währe es mit:

    pstree -A > log.txt


Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: