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 loo

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
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]

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 On

Re: [PHP] reboot pc with PHP

2003-08-28 Thread Matthew Harrison
will reboot the machine. > > > > -----Mensaje 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 (

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
-Mensaje 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 .pro

RE: [PHP] reboot pc with PHP

2003-08-28 Thread Javier Tacon
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 to send a mail. -Mensaje original- De