Originally Posted by Wim Sturkenboom
The message you see is (I guess) the info that ipmi_si sends to stdout. Your system call already redirects stderr (if I understand your code), so you have to add stdout to it.
On the commandline, the command would look something like
ipmi_si >/dev/NULL 2>&1
Not 100% sure about exact syntax but the trick is to redirect stderr to stdout and redirect stdout to /dev/null.
Thanks for your help!
I just execute this command in shell console.
modprobe impi_si >/dev/null 2>&1
and modprobe ipmi_si &>/dev/null
There have 5 messages:
ipmi_si: Trying "kcs" at I/O port 0xca2
ipmi_si: Trying "smic" at I/O port 0xca9
ipmi_si: Trying "bt" at I/O port 0xe4
ipmi_si: Unable to find any System Interface(s)
FATAL: Error inserting ipmi_si(/lib...): No such device
When I used >/dev/null, it just only ignore the last message.
Can I have another way to ignore these messages?
Thanks a lot!