disown to run long-running process via SSH. For example I run the following program:
vmd -e script.tcl > out.txt &
Then I use
disown -a to deattach it from the shell. When I reconnect the terminal the
out.txt shows that the program has finished. However, it shows the command prompt of the vmd (
vmd>). VMD is a program for running TCL scripts for chemistry simulations. You can assume it is something like python with its own shell
After a while, I couldn't connect to ssh because of the limit on the running processes (
fork retry: Resource temporary unavailable).
First, I want to know how I can kill those disowned processes if they are in waiting state.
Second, I want to know if I exit the
vmd program by putting
exit at the end of my
script.tcl, would it resolve the problem above for future uses?