I just thought of something... someone else just asked a similar question. Did you make sure to print a newline (endl, or "\n") after printing "Hello" from your program? Output doesn't always go to the screen unless you send a newline.
i.e.:
Code:
#include <iostream>
using namespace std;
int main() {
cout << "Hello" << endl;
return 0;
}
gcc test.cpp -o test
./test