TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CPP Question



Hello All:

My C's a bit rusty, but as I remeber there is a system function that can
be used to execute shell commands.
	Basically what I want to do is change to a directory, run a
command (eg /usr/bin/wesetup).
	Anyone know hod to do this?  I know it's realitivly insecure, but
that should be alright!  And yes the program is setuid root, yes again
it's insecure but the cgi program needs access to the filesystem and
everyone's mail!
_____________________________________________________________________________
	Jonathan Kline, A+
	Webmaster at students.ism-sabis.net
	Linux is the future of the world!

"Yesterday we were an army without a country, Tomarrow we just have to 
decide which country we want to buy!"
_____________________________________________________________________________