[ previous ] [ next ] [ threads ]
 
 From:  "Mitch \(WebCob\)" <mitch at webcob dot com>
 To:  "Michael Iedema" <iedemam at pluto dot dsu dot edu>, m0n0wall at lists dot m0n0 dot ch
 Subject:  RE: [m0n0wall] warning, unrelated: suppressing php output
 Date:  Thu, 8 Jan 2004 23:10:30 -0800
It's probably outputting to stderr.

Redirect stderr to devnull (or a file):

exec("dd if=/dev/zero of=tmp/mfsroot.bin bs=1k count=10240 2>/dev/null");

m/

-----Original Message-----
From: Michael Iedema [mailto:iedemam at pluto dot dsu dot edu]
Sent: Thursday, January 08, 2004 10:49 PM
To: m0n0wall at lists dot m0n0 dot ch
Subject: [m0n0wall] warning, unrelated: suppressing php output


This is a rather unrelated subject and I apologize in advance, but I
figure there are enough php/*nix people on here to answer this.

I have finished writing a small script for m0n0wall but cannot fix a
small problem with its output.

I need to suppress output from
exec("dd if=/dev/zero of=tmp/mfsroot.bin bs=1k count=10240");

I have tried redirecting stdout to /dev/null to no avail, and cannot
find any "quiet" flags for dd.  I'm missing a simple trick, anyone know
it?

Thanks, and again apologies, I've googled for awhile now with
uninformative results.

--Michael I.


---------------------------------------------------------------------
To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch