Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.

In reply to How Would I access a C++ compiler remotely through a Perl CGI Script? by Spidy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found