Yashwant Shettigar
New Member
Hi Everyone,
I have written a script using shell and uemcli(Unity/EMC), which executes fine from backend. But, when I execute the same script using php i.e frontend, it fails.
Below is the code:
shell script code-
uemcli -d 11.11.22.33 -u test -p test@123 /env/sp show
uemcli -d 11.11.22.33 -u test -p test@123 /env/disk show
These are the commands that works fine in black screen. But it doesn't execute when called using php. There is no error being shown in apache error logs or in /var/log/messages.
Below is the code of php file
#!/bin/sh
{ shell_exec("/bin/sh /test/test.sh"); }
I have written a script using shell and uemcli(Unity/EMC), which executes fine from backend. But, when I execute the same script using php i.e frontend, it fails.
Below is the code:
shell script code-
uemcli -d 11.11.22.33 -u test -p test@123 /env/sp show
uemcli -d 11.11.22.33 -u test -p test@123 /env/disk show
These are the commands that works fine in black screen. But it doesn't execute when called using php. There is no error being shown in apache error logs or in /var/log/messages.
Below is the code of php file
#!/bin/sh
{ shell_exec("/bin/sh /test/test.sh"); }