title: linux sshpass not able to execute command remotely
body: <p>I have remote <code>red-hat 5.4</code> machine where I am able to execute </p>
  
  <blockquote>
    <p>sudo lvdisplay</p>
  </blockquote>
  
  <p>command locally using xyz user but while executing the same command remotely using xyz user through <code>sshpass</code>, I am getting the result as </p>
  
  <blockquote>
    <p>sudo: lvdisplay: command not found.</p>
  </blockquote>
  
  <p>The command I am executing is like </p>
  
  <blockquote>
    <p>sshpass -p 'password' ssh -p 22 -o StrictHostKeyChecking=no
    xyz@hostname sudo lvdisplay</p>
  </blockquote>
  
  <p>.</p>
  
  <p>Please help me out to resolve the issue.</p>