From: Michael Bykov <m.bykov@gmail.com>
To: "Культурный офтопик" <smoke-room@lists.altlinux.org>
Subject: Re: [room] ssdeep: нет обработки standard input
Date: Wed, 19 Aug 2009 21:46:53 +0400
Message-ID: <69c7dc8b0908191046x3b51ed80ude440f0070797ca6@mail.gmail.com> (raw)
In-Reply-To: <e12fd2db0908191007m4c2032c4n2aa9560be6153880@mail.gmail.com>
19 августа 2009 г. 21:07 пользователь Eugene Ostapets
(eostapets@gmail.com) написал:
> 2009/8/19 Michael Bykov <m.bykov gmail.com>:
>> как обмануть программу, которая не имеет обработки standard input? Она
>> хочет, чтобы я указал ей файл. В документации сказано: Input from
>> standard input is not supported.
>>
>> А я хочу использовать ее внутри моей рубишной программы.
>>
>> Как ее обмануть?
>>
>> (Речь идет о ssdeep, http://ssdeep.sourceforge.net/)
> Хм... Можно попробовать через mkfifo, но неизвестно как она отнесется
> к SIGPIPE...
с mkfifo не получается, кажется
mkfifo pipe
tail pipe
в другой консоли cat aaa
и в этой консоли корректно выскакивает то что есть в файле ааа.
Но если ssdeep pipe
в другой консоли cat aaa
здесь:
ssdeep,1.0--blocksize:hash:hash,filename
,"/home/michael/pipe"
то есть вместо хеша пусто
М.
next prev parent reply other threads:[~2009-08-19 17:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 17:03 Michael Bykov
2009-08-19 17:07 ` Eugene Ostapets
2009-08-19 17:46 ` Michael Bykov [this message]
2009-08-19 17:47 ` Michael Bykov
2009-08-19 17:20 ` Andrey Rahmatullin
2009-08-19 18:38 ` Michael Bykov
2009-08-19 19:17 ` Alexey I. Froloff
2009-08-19 19:23 ` Andrey Rahmatullin
2009-08-19 19:49 ` Alexey I. Froloff
2009-08-19 20:20 ` Michael Bykov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69c7dc8b0908191046x3b51ed80ude440f0070797ca6@mail.gmail.com \
--to=m.bykov@gmail.com \
--cc=smoke-room@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Культурный офтопик
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
public-inbox-index smoke-room
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.smoke-room
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git