• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I reboot my remote server ?

#1
[eluser]RaiNnTeaRs[/eluser]
Hi all, I'm using linux ubuntu , and im trying to shutdown my server using php..
I've tried using bellow command, and it still doesnt work.
Code:
<?
exec('sh shutdown.sh');
?>

this is the cat result of shutdown.sh

Code:
echo mypassword | sudo -S bash
sudo reboot

Thx


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.