nickola / web-console

:desktop_computer: Simple web-based shell in your browser (outdated)
https://nickola.ru/projects/web-console
1.55k stars 347 forks source link

При использовании nano консоль зависает #44

Open opiums9 opened 6 years ago

opiums9 commented 6 years ago

Если попытаться открыть файл через nano, то консоль виснет, а проц получит полную загрузку 1-го ядра, это как то можно исправить? Debian9 + php 7.0

nhalstead commented 6 years ago

[Это сообщение переведено с помощью Google Translate, так что если что-то не выглядит правильным, его Google :P]

Это веб-консоль, а не ssh. Таким образом, вы можете перемещать файлы и запускать команды, но вы не можете открывать такие вещи, как nano или vim или что-то, что является окном. Как это работает, он отправляет команду, введенную в PHP, и использует функцию для ее выполнения в качестве системной команды и ждет ответа. VIM и Nano являются интерактивными, оконными. echo, help, ping, ifconfig и т. д. не являются интерактивными окнами, которые они запускают, и возвращают вывод, который отображается на экране (что мы видим в консоли).

The Message above but in english:

[This message is translated by Google Translate so if something does not look right, Its Google :P]

This is a web console not ssh. So you can move files and run commands but you can not open things like nano or vim or something that is a window. The way this works is it sends the command you entered to PHP and it uses a function to execute it as a system command and waits for a response. VIM and Nano are interactive, a window persay. echo, help, ping, ifconfig, etc. are not interactive windows they run and return an output that is echoed to the screen (what we see in the console).

opiums9 commented 6 years ago

Хорошо, спасибо! Буду пользоваться не интерактивными окнами :+1: