Dezzy Dezzy - 3 months ago 10
Linux Question

How to start C Program on Server to run in background

I have programmed a C program and tested it on my linux computer.

I have uploaded it to my server now and want it to run there the entire time as a background progress.

How is it possible to start a program which will continue to run after i close putty?

Thanks for any help!

Tom Tom
Answer

you can leave the program running by adding a & to the call

So when you have been executing your code before like this in SSH:

./mycode

you would to it like:

./mycode &
Comments