Skip to main content

Thread: How can we check


how can check whether program installed or not??

suppose want write script checks whether mysql installed or not..

if installed should ask me password of root... connect database , create database...

if not should ask me whether want install mysql or not??

if entered "y " should install mysql , mysql server

don't understand how can check whether program installed or not??

if installed suppose if try enter database root

code:
mysql -uroot -p
if enter in command prompt prompt me password how can in shell script??

, if installing newly using
code:
 apt-get install mysql apt-get install mysql-server
how can prompt root password ??

ask me root password how possible if try install through shell script??

possible automatically ask me enter root password doing in shell script???

mean shell script series of commands right?

how can check whether program installed or not??
have tried whereis, example

whereis mysql


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk How can we check


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?