开发者

How does Cpanel/whm execute linux commands

开发者 https://www.devze.com 2023-03-05 20:29 出处:网络
I want code开发者_开发技巧 my own interface which can interact with linux shell commands. i want to know (general idea) how does or in which language does cpanel/whmuse to interact with shell

I want code开发者_开发技巧 my own interface which can interact with linux shell commands.

i want to know (general idea) how does or in which language does cpanel/whm use to interact with shell

e,g if i click on show disk usage then how does cpanel display the usage

Does it execute shell command and then parse the result or what


Yes, use shell_exec in php and you're on your way to greatness! Be very careful for malicious users though (keep rm -rf / in mind for all inputs).

0

精彩评论

暂无评论...
验证码 换一张
取 消