output from scripts spawned by DBUS method invocations

Christopher Santero csantero at gmail.com
Mon Jan 16 12:34:35 PST 2006


On 1/16/06, David Zeuthen <david at fubar.dk> wrote:
> On Mon, 2006-01-16 at 15:13 -0500, Christopher Santero wrote:
> > I got my hal-system-storage-format script to get executed when a
> > client tries to invoke Format on
> > org.freedesktop.Hal.Device.Volume.Unstable (which I can verify since I
> > put a sleep statement in the script, which dutifully blocks my test
> > program for the duration). Now my question is, how can I get output
> > from these scripts? Echoing to stdout or stderr doesn't go anywhere,
> > since nothing is done with the stderr file descriptor returned from
> > hal_util_helper_invoke_with_pipes when it is called from
> > hald_exec_method (hald_dbus.c:2708). Should a watch be placed on the
> > stderr_fd returned from that function, which logs the messages?
>
> Well if run you hald manually via the hald/run-hald.sh script it should
> appear as the debug output of the daemon. Otherwise you might want to
> log to /tmp/somefile.txt or something.

It doesn't show up in the debug output of run-hald.sh, but /tmp will do. Thanks.

Chris


More information about the hal mailing list