System function

James Parsons (53)
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;
}
Zaita (2400)
Yes you can use system("");
Registered users can post here. Sign in or register to post.