Background: Difference between revisions
Jump to navigation
Jump to search
import>Tes36 (Created page with "Say you run a qchem program. It may go on for some time. During this time it would be nice to be able to continue using your terminal - perhaps tracking the output of the prog...") |
import>Tes36 No edit summary |
||
Line 1: | Line 1: | ||
Say you run a qchem program. It may go on for some time. During this time it would be nice to be able to continue using your terminal - perhaps tracking the output of the program. |
Say you run a qchem program. It may go on for some time. During this time it would be nice to be able to continue using your terminal - perhaps tracking the output of the program. |
||
#Pausing |
#Pausing Ctrl-Z will pause your current process. |
||
#Backgrounding |
#Backgrounding bg will cause your currently paused process will be restarted in the background. |
||
#The & |
#The & The & symbol at the end of an input will automatically run the program in the background. E.g. qchem ''input'' ''output'' & |
||
#jobs |
#jobs This command shows all the processes running in the background. The id's are given for use with... |
||
#Foregrounding |
#Foregrounding fg will cause one currently backgrounded process to be brought back the foreground - perhaps to be Ctrl-C killed. |
||
#top |
#top If you lose track of your processes running in the background, perhaps because your connection through ssh was reset, you can see all processes running on the computer with top. From here you can kill processes with 'k' + the PID listed. For more information see the top link under the introduction page. |
Revision as of 09:07, 21 August 2015
Say you run a qchem program. It may go on for some time. During this time it would be nice to be able to continue using your terminal - perhaps tracking the output of the program.
- Pausing Ctrl-Z will pause your current process.
- Backgrounding bg will cause your currently paused process will be restarted in the background.
- The & The & symbol at the end of an input will automatically run the program in the background. E.g. qchem input output &
- jobs This command shows all the processes running in the background. The id's are given for use with...
- Foregrounding fg will cause one currently backgrounded process to be brought back the foreground - perhaps to be Ctrl-C killed.
- top If you lose track of your processes running in the background, perhaps because your connection through ssh was reset, you can see all processes running on the computer with top. From here you can kill processes with 'k' + the PID listed. For more information see the top link under the introduction page.