title: shell scripting and jQuery
body: <p>I want to execute a linux command that returns the currently logged on user in linux.</p>
  
  <p>Using jQuery and ajax, passing this command to the PHP, which will receive and execute this command using <code>exec()</code> function. The value should be stored and returned.</p>
  
  <p>Upon returning, jquery ajax should return it to a contents of a span tag.</p>
  
  <p>How can this be achieved?</p>