title: Execute command give top: failed tty get
body: <p>I have a problem when executing this line shown below.</p>
  
  <pre><code>sudo /usr/bin/env TERM=xterm /usr/bin/php /home/folder/folder/script.php -b val -a 2018-07-01
  </code></pre>
  
  <p>It gives me a error <code>top: failed tty get</code>. When I try it with <code>php -f</code> it gives me another problem similar to <code>php --help</code>. </p>
  
  <pre><code>[0] =&gt; Array
          (
              [error] =&gt; 1
              [return] =&gt;     top: failed tty get
  
  
          )
  </code></pre>
  
  <p>The result that I want is to execute command with success not error I execute this command with SSH in a PHP script.</p>