title: Run Bash Command At X Time and Terminate for X Time
body: <p>Hi im working on a simple bash coding i don't know how to accomplish this and this might be easy for you guys please help.</p>
  
  <p>I have a simple program on file.sh </p>
  
  <pre><code>#!/bin/bash
  
  ./program
  </code></pre>
  
  <p>This ./program is a compiled version of C program which i complied using GCC im trying to use at in bash script to execute this program for few seconds and then terminate that after x interval time and restart again.</p>
  
  <p><strong>I hope you got my point?</strong></p>
  
  <p>Example: Run file.sh for 10 sec and I'll display the result from ./program C program and then after 10 sec it will restart again.</p>