Skip to contentSkip to conversation

avoid some indicative messages

DISCUSSION MYRIAM15 3 participants 3 messages Aug 27, 2003 – Aug 28, 2003 netfilter

lore
Share & tools
lore

MYRIAM15

author
#0 lore raw

Hi,
Maybe it is a stupid question. It's just that use a C program that if certain conditions are true, it adds rules. But every time I start the program, I want to be sure that previous rules that could have been created, they must be deleted, so the C program also does it. In this case, if a rule itself has not been created, some messages are printed that basically say: "that rule cannot be deleted because it doesn't exist". My question then is: is there any way to avoid these messages?

Thank you very much in advance
Miriam

#1 lore raw
Quoted 7 lines · On Wed, Aug 27, 2003 at 11:24:10PM +0300, MYRIAM15 wrote:

Maybe it is a stupid question. It's just that use a C program that if certain conditions are true, it adds rules. But every time I start the program, I want to be sure that previous rules that could have been created, they must be deleted, so the C program also does it. In this case, if a rule itself has not been created, some messages are printed that basically say: "that rule cannot be deleted because it doesn't exist". My question then is: is there any way to avoid these messages?

Assuming that it's a stupid question, here's a try at a stupid answer:

program 2>/dev/null

Hope this helps.

best regards
Patrick

#2 lore raw
In reply to MYRIAM15
Quoted 3 lines

Hi,
Maybe it is a stupid question. It's just that use a C program that if exist". My question then is: is there any way to avoid these messages?

close stdout ?