Hi ,
        i am trying for a python script that is to check the php5 and
mysql softwares.If the php5 and mysql softwares are not installed, the
should provide a way to list down / install the software. 


please guide me to do this.- 

for this I am doing

import sys
import os
import commands
import sys


        commands_hash = {}
        commands_hash['php'] = {}
        commands_hash['php']['title'] = "*********PHP**************"
        commands_hash['php']['value'] = "rpm -qa *php*"
        commands_hash['mysql'] = {}
        commands_hash['mysql']['title'] ="********MYSQL**************"
        commands_hash['mysql']['value'] = "rpm -qa *mysql*"


this is checking whether PHP and MYSQL are installed but how to enhance
it so as to install them.


Thanks

Jatinder Singh


On Sun, 2008-05-11 at 17:07 +0530, "शंतनू महाजन (Shantanoo
Mahajan)" wrote:
> Hi Jatinder,
> Please turn off caps lock.
> On 11-May-08, at 4:54 PM, root wrote:
> 
> > Hi ,
> >     I AM TRYING FOR A PYTHON PROGRAM THAT WILL CHECK WHETHER {- PHP AND
> > MYSQL -} ARE INSTALLED ON lINUX OR NOT AND IF THEY ARE NOT INSTALLED
> > THEN THE SCRIPT WILL TO INSTALL IT.
> >
> > for this I am doing
> >
> > import sys
> > import os
> > import commands
> > import sys
> >
> >
> >     commands_hash = {}
> >     commands_hash['php'] = {}
> >     commands_hash['php']['title'] = "***********PHP**************"
> >     commands_hash['php']['value'] = "rpm -qa *php*"
> >     commands_hash['mysql'] = {}
> >     commands_hash['mysql']['title'] = "***********MYSQL**************"
> >     commands_hash['mysql']['value'] = "rpm -qa *mysql*"
> >
> >
> > this is checking whether PHP and MYSQL are installed but PLEASE TELL  
> > ME
> > HOW TO ENHANCE IT SO AS THE INSTALL IT IF NOT INSTALLED ALREADY.
> 
> Please check '-i' and '-U' options of rpm command.
> 
> regards,
> shantanoo


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to