First, create a script that gives you a short response from the command execution, so you can get this response via SMS.
Then take a look at the exec() and passtrhu() functions on PHP. Remember to include checking for a passphrase on your script, so only people who know it can send the SMS command to execute. Kind Regards, -- Carlos Garisoain On Fri, Sep 19, 2008 at 3:12 AM, Eustache Safari <[EMAIL PROTECTED]>wrote: > The best to do would be:You can write your scripts in shell or perl or any > other scripting language. > You "crontab" them, to run every minute. However, for them to run, they > must wait some notification. It would be, an information file. If there's a > special keyword in the information file, then the script will continue to > execute (administrating/accessing) your server you want to administer. If > there's no keyword, then it stops > Then, from your kannel, you'll send an sms containing the keyword. Your php > will be responsible to put the keyword in the init file. > To ensure that your scritp doesn't run continuously, just after it has > exectuded, it will clean the information file. > And also, when it has finished, it will send you a notification by sms, > using kannel. > Also, bear in mind that yo can do a limited number of administrative tasks. > by this manner. > Hope this will be helpfull. > Eustache > On Fri, Sep 19, 2008 at 4:07 AM, fajar <[EMAIL PROTECTED]> wrote: > >> You should ask the php developer mailing list to accomplish this, but >> for basic idea, I think you should do : >> >> 1. allow ssh access from php server to remote server(I mean direct >> acess without asking password) >> 2. from ssh you can launch command directly to remote server, and get >> the result >> >> >> >> Fajar >> >> >> ------------------------------ >> >> *From:* Têvi Rodrigue Lawson [mailto:[EMAIL PROTECTED] >> *Sent:* Thursday, September 18, 2008 9:29 PM >> *To:* [email protected] >> *Subject:* Administrate Linux services with sms >> >> >> >> Hi, >> >> >> >> i have configured my kannel and pull/push message work correctly. >> >> I would like to administrate linux services (ssh, apache...) remotely with >> sms. The first thing i would like to do is to be able to stop and start >> services. >> >> The problème is that, i don't know exactly what my php code would look >> like! >> >> Please i need help ! >> >> >> >> Tevi >> >> >> >> >> > > > > -- > Kind regards > Eustache >
