Marwan58's blog

By Marwan58, history, 3 years ago, In English

Is there a tool or website to compile a program on their server, without having to stay in the window, I want for example to write a program that counts from 1 to 10^10, and I might want to close the window and get back to it later, after it finished. like the compilation is done in the server.

  • Vote: I like it
  • +13
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Lol, if you are looking for a free online judge then its impossible, no one will run your program for more than a minute. Since its impossible to know whether a program will terminate in finite time so the execution is automatically stopped.

On a side note, thats not how you are supposed to write / check brute solutions XD

»
3 years ago, # |
  Vote: I like it +17 Vote: I do not like it

What you are looking for is called GNU Screen. You can start a session with screen -S <session_name>, then run some process in that session and minimize the session with Ctrl + a + d. The process will still be running in the background. When you want to see the progress, you can re-attatch the session with screen -r <session_name>. See screen -r for more uses.