[info] output should go to /dev/stdout instead of /dev/stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocsinventory-agent (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Dear maintainers,
I am running ocsinventory-agent with anacron like this :
# ocsinventory-agent 1> /dev/null
I would expect output only if there is an error, so that I am notified only if there is a problem. Instead, the agent always returns some "debug" output on /dev/stderr, which leads my email to be spammed.
Here is the output I get if I run the command line above :
# ocsinventory-agent 1> /dev/null
[info] No support detected. Registration key: N/A
[info] [download] Download is off.
[info] [download] Beginning work. I am 4298.
[info] [download] Option turned off. Exiting.
I am running Ubuntu 14.04 amd64, ocsinventory-agent is version 2:2.0.5-1.
The configuration is almost the default one, I only changed the server FQDN.
/etc/ocsinvento
# this list of module will be loaded by the agent at run time
# to check its syntax do:
# $perl modules.conf
# You must have NO error. Else the content will be ignored
use Ocsinventory:
# DO NO REMOVE the 1;
1;
/etc/ocsinvento
server=
Regards,
YvanM