Recently, I've been working on learning how to use C++. Or at least, to develop a working understanding of it. At school, I have a full two blocks during which I can get on computers, but neither of them have C++ compilers. I have a linux box at home, so the idea popped into my head to run a webserver off of it, with a single CGI page on it. I would put my C++ code into this CGI page(form), and it would then print the contents of the form into a file, and use a system call to compile it, and return any errors that actually came back.
Does anyone know if it's actually possible? It would be cool to do...having to wait a full day to check for bugs in my code is not efficient at all.
The way I'm thinking of handling it is to have the CGI script write the form contents into a single file, and delete whatever was in there previously, before calling a system call on that file. However, I'm not 100% certain if I'm actually able to do that...does anyone know for sure?
Thanks,
Spidy
UPDATE: After many people's hackles raising, I've decided to go with SSH, which, after testing, turns out to suit my needs perfectly.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.