RE: Supressing Console output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Karthik,

	You can redirect the messages to /dev/null so that it wont
appear to user. You can do it by killall -9 process >& /dev/null.

Also try using signal function call for doing these operations.

Thanks, 
Krishnaprasad 

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kartik CDS
Sent: Tuesday, September 04, 2007 4:18 PM
To: redhat-list@xxxxxxxxxx
Subject: Supressing Console output

Hi,

I have a C++ program where i call the system call

system("killall -9 MyProcess");

When i run the program and the Process "MyProcess" is not running, i get
a
message on my konsole
*MyProcess: no process killed*

I dont want anything to be printed on the console when i run the
programme,
wheather or not "MyProcess" is running.

How can this be done?

Regards,
Kartik CDS
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux