execute a program remotely using putty

hi all.

I have a small program on a debian server which i need to execute remotely from a windows machine using putty.

when i use putty to execute the program it starts running , but when i close the session the program stops running on the debian server as well.

Can anyone guide me how to let the program run after i close the putty session?

Thanks.:frowning:

read the manpage of "nohup" (man nohup). this is what you need...

easy
start the program with
#program &

then close your putty. you programme still working

cheers

Try this
nohup ./ur-program > /dev/null 2>&1
or
nohup ./ur-program > stout.log 2>&1

thanks mehrdad68.
Now it works.