cPanel plugin bash
Hello,
I am trying to make a cPanel plugin that our users can use to run some specific bash commands. For now, I managed to create the cPanel plugin from WHM -> cPanel Plugin File Generator and managed to install it in cPanel. What i cannot do is run bash commands from within the cPanel plugin. I have a file named "bash_cpanel.sh" that only does some basic bash commands (for testing purposes):
49979 It only displays the code from within the bash script and does not run anything. Is there something that needs to be done to run a bash script from within a custom cPanel plugin? Thank you.
[root@mycpanelserver my_plugin]# cat bash_cpanel.sh
#!/bin/bash
## Only for testing purposes
pwd ; ls -al / ;
49979 It only displays the code from within the bash script and does not run anything. Is there something that needs to be done to run a bash script from within a custom cPanel plugin? Thank you.
Please sign in to leave a comment.
Comments
1 comment