lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 26 Jan 2007 22:04:57 +0100
From:	Jiri Slaby <jirislaby@...il.com>
To:	Phillip Susi <psusi@....rr.com>
Cc:	Khai Doan <khai@...ius.com>, linux-kernel@...r.kernel.org
Subject: Re: How to create a fixed length character/block device/file ?

Phillip Susi napsal(a):
> Khai Doan wrote:
>> Sorry if this is the wrong list.  I've search google, but have not 
>> found solution to my problem.
>>
>> I have a long running application which split out lots of debugging 
>> information.  I can't redirect the output to a regular file because 
>> that file would grow and eat up all the diskspace.  I can't redirect 
>> to /dev/null.  What I want is the last 1MB of the output before my 
>> application terminated.  So I need to create a special file / device 
>> on the system.  Please tell me if  there is an existing device that I 
>> can use, or point me in the right direction so that I can role my own 
>> device.
> 
> myapp | tail -c1048576 > logfile

AFAIK this will output the file after the app termination. He wants to know the 
log before that.

Just write your own reader which will output last meg in some intervals...

regards,
-- 
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ