title: Running shell command in QT c++ in ubuntu
body: <p>I am using Qt 5.0.1 (64 bit) in ubuntu. 
  I am running the following command under button pressed function.</p>
  
  <p>QString command = "sh /home/rahul/qtapp/ques_new/ques_new/inter4ql/test1.sh";
  const char* command2;</p>
  
  <p>command2 = command.toLocal8Bit().data();</p>
  
  <h2>system(command2);</h2>
  
  <p>test1.sh file content is </p>
  
  <h1>!/bin/bash</h1>
  
  <p>echo "hello" 
  echo "hello" >> out.txt</p>
  
  <hr>
  
  <p>While calling this system command by pressing button, it shows hello  in the output window, but it doesnot create new file out.txt. </p>
  
  <p>For debugging I manually create out.txt before calling this function. But, after calling this function again it shows hello on output window but doesnot put hello in out.txt.  </p>