Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Michael D. Berger" <m.d.berger@ieee.org>
To: netfilter@vger.kernel.org
Subject: debugging a libnetfilter_queue program and stdout
Date: Wed, 17 Feb 2016 14:12:20 -0500	[thread overview]
Message-ID: <0O2P00CI3HCLQG40@vms173025.mailsrvcs.net> (raw)

I wrote a program using libnetfilter_queue. Call it "tst". 
It normally runs as a service, but when I am debugging it, I
put some printf statements in it and run it in the foreground
by typing:

   tst

and the printf results appear on the screen as expected. However,
if I expect a long output, I would rather type:

   tst > log

hoping to see the results in the file "log".  However, "log" is
always empty, even though I have other indications that "tst" is
running.

Why is this?  Is there anything I could do to get the printf
results to appear in "log"?

Thanks,
Mike.

--
Michael D. Berger
m.d.berger@ieee.org
http://www.rosemike.net/
 


             reply	other threads:[~2016-02-17 19:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 19:12 Michael D. Berger [this message]
2016-02-20 20:42 ` debugging a libnetfilter_queue program and stdout Adel Belhouane

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=0O2P00CI3HCLQG40@vms173025.mailsrvcs.net \
    --to=m.d.berger@ieee.org \
    --cc=netfilter@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox