[MLB-WIRELESS] Remote Restart script help

Jason Clarke melbwireless at clarkey.id.au
Fri Jun 17 16:47:52 EST 2005


Probably want to use SUDO and the php command exec();

http://au.php.net/exec


----- Original Message ----- 
From: "Brenton D." <ivile01 at yahoo.com.au>
To: "Adrian Lodders" <adrianlodders at bigpond.com>; 
<melbwireless at wireless.org.au>
Sent: Friday, June 17, 2005 4:21 PM
Subject: Re: [MLB-WIRELESS] Remote Restart script help


> Why not just use a php page that has the reset command in it?
>
>
> <?php
>
> $output = `reboot`;
>
> ?>
>
> the webserver user must have access to the reboot file
>
>
> Then go to it on your phone using wap.
>
> I have done this but, echoing commands and only like 1 command per page, 
> due to wap.
> But this was when i got GPRS for free.
>
> ivile01 at yahoo.com.au | ivile at ivile.bur.st
> http://bur.st/~ivile (waveguides) | http://ivile.bur.st | 
> http://ivile.bur.st/ivile/64/ (my car)
> http://www.melbourne.wireless.org.au/users/?ivile
> ----- Original Message ----- 
> From: "Adrian Lodders" <adrianlodders at bigpond.com>
> To: <melbwireless at wireless.org.au>
> Sent: Friday, June 17, 2005 4:00 PM
> Subject: [MLB-WIRELESS] Remote Restart script help
>
>
>> Hi
>>
>> I need some help with creating a script where by I can connect to a WAP
>> site on my mobile and remotely restart a server.
>>
>> All I really need is it to just know how to run the shutdown command,
>> after that I can do the rest of the code myself.
>>
>> My preferred language is PERL, but if you know how to do it in PHP I'm
>> willing to learn ;)
>>
>> Regards,
>> Adrian
>> NodeGZX
>>
>>
>> To unsubscribe: send mail to majordomo at wireless.org.au
>> with "unsubscribe melbwireless" in the body of the message
>>
>
>
> To unsubscribe: send mail to majordomo at wireless.org.au
> with "unsubscribe melbwireless" in the body of the message
>
> 



To unsubscribe: send mail to majordomo at wireless.org.au
with "unsubscribe melbwireless" in the body of the message



More information about the Melbwireless mailing list