title: How to pass user input to os command line interface using Python?
body: <p>I am passing some user input to <code>views.py</code> file and need to pass those input param to OS command line interface using Python. I am providing my code below:</p>
  
  <pre><code>rname = request.POST.get('react')
          if 'strt' in request.POST:
              status = 1
  
          if 'shutbt' in request.POST:
              status = 0
  
          if 'susbtn' in request.POST:
              status = 2
  passw = Reactor(
                rname=rname,
                status=status,
          )
  passw.save()
  </code></pre>
  
  <p>Here I am getting the user input by <code>post</code> method and before save into database I need to pass both param <code>i.e-status and rname</code> to OS command line interface.</p>