PDA

View Full Version : how can i configure shell files



harijibhv
22nd July 2007, 19:35
i wish to configure httpd.conf file by using c++

i wish to create a small project to configure http server by using GUI programming for this reason i want to configure httpd.conf file through coding and how i can run command like

#service httpd restart
#chkconfig httpd on


if you know please help me

jacek
22nd July 2007, 20:31
For example using POSIX functions like system() or popen(). In Qt there's QProcess class for this kind of job.