Dezzy Dezzy - 1 year ago 105
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 Source

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:


you would to it like:

./mycode &
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download