|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Valentin Ermolaev 2:463/544.12 22 Aug 2002 23:56:03 To : Petro S. Subject : tcpdump > file.ext --------------------------------------------------------------------------------
At 22 Aug 02 14:19:06, Petro S. wrote to All:
PS> подскажите, как ограничить размер файла при выполнении tcpdump > file.ext
PS> ну скажем до 2Мб, чтобы потом получилось много-много подобных файлов, и
PS> получившиеся логи было бы одно удовольствие просматривать!
man tcpdump
-C Before writing a raw packet to a savefile, check
whether the file is currently larger than file_size
and, if so, close the current savefile and open a
new one. Savefiles after the first savefile will
have the name specified with the -w flag, with a
number after it, starting at 2 and continuing
upward. The units of file_size are millions of
bytes (1,000,000 bytes, not 1,048,576 bytes).
Namlala unono!
---
* Origin: write once, debug everywhere (2:463/544.12)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/33150d654ff9.html, оценка из 5, голосов 10
|