Wednesday, 11 July 2018

Execute command give top: failed tty get

I have a problem when executing this line shown below.

sudo /usr/bin/env TERM=xterm /usr/bin/php /home/folder/folder/script.php -b val -a 2018-07-01

It gives me a error top: failed tty get. When I try it with php -f it gives me another problem similar to php --help.

[0] => Array
        (
            [error] => 1
            [return] =>     top: failed tty get


        )

The result that I want is to execute command with success not error I execute this command with SSH in a PHP script.



from Execute command give top: failed tty get

No comments:

Post a Comment