Since a daemon can not use a terminal, its messages are written to logfiles in /var/log. For mandriva, it is /var/log/syslog, for RedHat/SuSE it is /var/log/messages
Regards,
--------------------------------------------------------------------------------------------
P. D. Phan
IBM Austin
--------------------------------------------------------------------------------------------
"grisha gringauz"
<[EMAIL PROTECTED]
om> To
[email protected]
10/06/2008 01:26 cc
PM
Subject
Re: [Openhpi-devel] openhpi daemon
Please respond to debug and trace messages
[EMAIL PROTECTED]
ts.sourceforge.ne
t
Thanks, but still nothing.
I think that environment variables of a certain process are different than
system environment variables, that's why I wrote a seperate program and
used execv, which supposed to passed its environment variables to its son.
On Mon, Oct 6, 2008 at 5:17 PM, Jason Barrett <[EMAIL PROTECTED]> wrote:
What if you export them in the shell environment before running your
program? As in,
$export OPENHPI_DEBUG=YES
$export OPENHPI_TRACE=YES
I *think* that's what I did, but it's been so long I can't swear to it..
Jason
From: grisha gringauz [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2008 10:46 AM
To: [email protected]
Subject: Re: [Openhpi-devel] openhpi daemon debug and trace messages
Thannks, now I changed my program to:
#include <unistd.h>
int main(int argc, char *argv[])
{
setenv("OPENHPI_DEBUG", "YES");
setenv("OPENHPI_TRACE", "YES");
execv("/etc/init.d/openhpid", argv);
return 0;
}
but it still doesn't work, I still don't see any messages written to
stderr.
On Mon, Oct 6, 2008 at 3:59 PM, Vaupotic Marko <
[EMAIL PROTECTED]> wrote:
Use OPENHPI_DEBUG and OPENHPI_TRACE variables as defined in
include/oh_error.h
Marko
> Hello,
> I looked at the source of the openhpi daemon and saw that it has dbg
and trace messages.
> Is there a way to see these messages?
> I tried to do it by writing the following program:
>
> #include <unistd.h>
>
> int main(int argc, char *argv[])
> {>
> setenv("OH_DBG", "YES");
> setenv("OH_TRACE", "YES");])
> execv("/etc/init.d/openhpid", argv);
> return 0;
> }>
>
> but it didn't work, I still don't see any messages written to stderr.
>
> Thanks
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel
<<inline: graycol.gif>>
<<inline: pic09905.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Openhpi-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openhpi-devel
