i am trying to sun a bash script when i update something:
public function reloadServer()
{
exec ('/var/www/html/script', $y);
Zend_Debug::dump($y);
}
this is the script
file
#!/bin/bash
# test
ssh root@192.168.526.33 "server -rx reload"
echo "success"
what happens is that get the success
message, but the command doesn't get run.
if i run the command manually it works just fine
note: i can't use ssh2_exec
because of some problems on my server
any ideas on what is happening or how can i debug that bash script ?