[PHP] reboot pc with PHP

2003-08-28 Thread Petre Agenbag
Hi List I've gone through the list for previous questions and the only one that seems to be a solution is to use sudo, however, I cannot seem to get it right. Just as background: I want to make a small admin utill for an intranet machine, so the security risks don't bother me at all. Instead

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
- De: Petre Agenbag [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 14:48 Para: [EMAIL PROTECTED] Asunto: [PHP] reboot pc with PHP Hi List I've gone through the list for previous questions and the only one that seems to be a solution is to use sudo, however, I cannot seem to get

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
original- De: Javier Tacon Enviado el: jueves, 28 de agosto de 2003 15:07 Para: Petre Agenbag; [EMAIL PROTECTED] Asunto: RE: [PHP] reboot pc with PHP You can write a little script with expect (man expect) and execute it from php with exec(). Other solution its to write a .procmailrc in root

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
] Asunto: RE: [PHP] reboot pc with PHP You can write a little script with expect (man expect) and execute it from php with exec(). Other solution its to write a .procmailrc in root that executes the reboot when coming a mail with some text in subject or boyd, so, from php you only need

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
.. chown 700 /directory/for/rrebootfile chown apache.nobody /directory/for/rrebootfile -Mensaje original- De: Matthew Harrison [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 15:49 Para: Javier Tacon CC: Petre Agenbag; [EMAIL PROTECTED] Asunto: Re: [PHP] reboot pc with PHP

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
apache.nobody /directory/for/rrebootfile -Mensaje original- De: Matthew Harrison [mailto:[EMAIL PROTECTED] Enviado el: jueves, 28 de agosto de 2003 15:49 Para: Javier Tacon CC: Petre Agenbag; [EMAIL PROTECTED] Asunto: Re: [PHP] reboot pc with PHP On Thu, Aug 28, 2003 at 03:35:59PM

Re: [PHP] reboot pc with PHP

2003-08-28 Thread David T-G
Petre, et al -- ...and then Petre Agenbag said... % % Hi List Hi! % % I've gone through the list for previous questions and the only one that % seems to be a solution is to use sudo, however, I cannot seem to get it % right. ... % % Obviously these command(s) need to be run as root, so I