title: How to get "Client name:" of a perforce workspace using "p4 info" from python script?
body: <p>I have a scenario where i need to have perforce workspace Client name information. Trying out with script as follows:</p>
  
  <pre><code>    import sys
      import subprocess
      cmd = "p4 info | grep" + """ "Client name" """ +""
      print ("p4 command is: ",cmd)
      p4 = subprocess.call(cmd)
      print( p4)       
  </code></pre>
  
  <p>Where i get out put as :</p>
  
  <pre><code>    p4 command is: p4 info | grep "Client name"
      Usage: info [-s]
      Unexpected arguments.
      1
  </code></pre>
  
  <p>I tried doing as follows too but did not worked:</p>
  
  <pre><code>    import sys
      import subprocess
      p4_info = subprocess.call([sys.executable, "p4 info | grep "Client name""])
  </code></pre>
  
  <p>I actually want to fetch only Client name information. So, suggest me how i may have that. If there is another way of doing it please suggest. The script will be executed within the workspace and shall return the only Client name: </p>