Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c++ cgi & RH Linux

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, I've written some small cgi's in c++ on Sun Unix. I want to run these cgi's on a free web space provider that uses Red Hat Linux. They allow C++ cgis's but not telnet. Therefore I can't compile on their machine. As I understand it, c++ cgi's MUST be compiled on the system that they will be run from, in order to work.

However, if I install Red hat Linux on my own PC, compile them and then upload them to the server, will they be able to run? Anyone have any experience of this?

Thanks,

cloud hopper
 
Theoretically, yes, you could install the same flavor and version of Linux on your PC and compile for that combination. However, as your service provider upgrades and maintains their systems, you will have to follow. Another option might be to use Perl. Perl is ubiquitous on the web for CGI stuff and if you can write C++, you could learn Perl with out to much trouble.

'just my thoughts on the subject

good luck.


keep the rudder amid ship and beware the odd typo
 
Disclaimer: This is intended to be a joke. Unless it works.

You could also try writing a Perl script that invoked gcc through a system call and thus, compiled your code on their server through CGI. ;-)


brendanc@icehouse.net
 
You can compile your files on some free web hostings.
I personnelly write cgi scripts on c/c++, using webutil2 utility, and it works as good as perl script, even better if you need to write some comlicate programm.
If you would like to get some utils for c/c++ CGI scripting,
write me: lkolchinsky@mail.ru
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top