I use 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
http://www.ks.uiuc.edu/Training/Tutorials/vmd/tutorial-html/node8.html
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?
vmd
ain't a tool I ever heard about. Without some information about what that tool is, I don't think this question can be answered. – kasperd Jun 10 '18 at 11:08screen
ortmux
session and not fiddle around withdisown
etc. – Sven Jun 10 '18 at 11:09screen
via SSH, the command is not found. I use MobaXTerm to connect the server. – Ahmad Jun 10 '18 at 11:37