def run(command, **kwargs):
  """Excecutes the given command while transfering control, till the execution is complete.
  """
  print command
  p = Popen(shlex.split(command), **kwargs)
  p.wait()

  return p.returncode