|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Restarting bind and displaying output?
i have the code below but i need to have some kind of output...
The reason im using this code is, im making a hosting with cpanel and such. but the problem is my ISP told me its smart to restart BIND after each signup. So im doing so, but i want it to send me a email and i want output of the bind restart... Thats all i have right now, i know for sure it does restart, but i want that emailed to me as well... well many thanks |
|
#2
|
|||
|
|||
|
RE: Restarting bind and displaying output?
read up on the mail() function.
to get your output, do this: $output = system('/usr/sbin/ndc restart'); that will store the command output into the $output variable. By the way, you need to make sure you have sufficient privileges to execute that comand. Root access is usually required to restart a daemon. |
|
#3
|
|||
|
|||
|
RE: Restarting bind and displaying output?
i have a dedicated server and i know how to use mail(); plus i dont use mail i use a smtp class i made. Im just not familar with linux commands or using system();
|
|
#4
|
|||
|
|||
|
RE: Restarting bind and displaying output?
I can all but guarantee that you are going to run into permissions problems when restarting bind from a web application.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Restarting bind and displaying output? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|