title: C program calling shell script
body: <p>I have a small C program calling a shell script myScript.sh. I am getting the value of ret as 256. Please help me in knowing what went wrong with the system call?</p>
  
  <pre><code>int main()
  {
  int ret;
  ret = system (myScript.sh);
  ret &gt;&gt;=  ret;
  if (ret != 0)
  {
    printf("ret is [%d]",ret);
  }
  }
  </code></pre>
  
  <p>Working on 64 bit UNIX operating system and using ksh shell</p>