title: Setting a date to embedded system using shell script
body: <p>i'm using embedded linux here i need to set the current date to system which is based on user input given by the key board,here i'm failing at one condition that is the system has to wait for 2 minutes un till gets input from keyboard if it reaches to specified wait time it has to come out from loop.......</p>
  
  <p>Below is my piece of code:</p>
  
  <pre><code>echo please enter the date in below format 
  echo YEAR- MM-DD HRS:MNS:SEC  and press enter 
  
  read -e a1 
  startd=$(date -s "$a1"); 
  
  echo "$startd"; 
  
  hwclock --systohc 
  date 
  </code></pre>