System function

I know its looked down on but does anyone know if I can use the system command on a Linux environment for example can I do this
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
#include <cstdio>
#include <cstdlib>

int main()
{
 cout<<"Executing Linux System Command Echo\n";
 system(echo Hello, From The Bash Shell);
 getchar():

 return 0;
}
Yes you can use system("");
Topic archived. No new replies allowed.