by Damyon Wiese.
We are currently adding webservices to the assignment module that will let you do this more easily (with no code in Moodle) - but they will not likely be the version that you are using (2.5 is likely to have all these).
For earlier versions I would suggest a new assignsubmission plugin that accepts files, posts them to your remote server, then an assignfeedback plugin that checks the remote server for any grades/compilation errors etc on the remote server for a given submission id.
(There are other ways to do this - this is just a suggestion).
- Damyon