Hiding console command used while using system()? C++ Linux

Viewed 3269

Well, I will put it plain and simple: I am a C++ pleb. Still trying to learn though.

My question is: is it possible to run a command though the terminal using system() command without letting the command be shown in the console/terminal?

Example:

system("sudo service sshd start") ;
Output: Sudo service sshd start

Where as I want:

system("sudo service sshd start") ;
output: (Blank)

Note: I am on linux.

1 Answers
Related