title: shrewsoft command line interface to connect and terminate vpn on ubuntu
body: <p>Shrewsoft [<a href="https://www.shrew.net/">1</a>] provides a command line interface for setting up the vpn tunnel automatically without any user intervention, such as by using the following command</p>
  
  <p><strong>ikec -u username -p password -r configuration -a</strong></p>
  
  <p>IS there any way to detect if the connect attempt was successful such as by reading live logs and how can we terminate the vpn tunnel after some time using the command line. Any help will be appreciable.</p>