Блог пользователя Marwan58

Автор Marwan58, история, 3 года назад, По-английски

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.

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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 года назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

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.