Somehow it is not super obvious how to get there, and even google didn't help.
So there:
qrsh -l hostname=waldorfwhere "waldorf" is the name of the host you want to log onto.
qrsh -l hostname=waldorfwhere "waldorf" is the name of the host you want to log onto.
while true; do sleep 60; qstat -u ries; doneBut according to
~/.ssh/ssh_config
with:Host * ServerAliveInterval 60
Screen is a powerful utility that allows you to control multiple terminals which will stay alive independently of the ssh session.
screen
python ../bwa_parallel_arrays/bwa_parallel.py -P tmp -I . -t 4 -e error -o out -n 10 > screen_out.txt &
screen -d
Detach the screen session (disconnect it from the terminal and put it into the background). A detached screen can be resumed by invoking screen with the -r option.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
55557 ries 20 0 3948712 3.686g 6392 R 5.9 1.5 0:41.99 python
32063 ries 20 0 27036 3524 2284 R 1.3 0.0 0:00.23 top
9023 ries 20 0 28976 3076 2440 S 0.0 0.0 0:00.00 screen
screen -r
screen -list
There is a screen on:
9023.pts-8.waldorf (Detached)
1 Socket in /var/run/screen/S-ries.
git clone https://github.com/davidries84/bwa_parallel_arrays.git
git commit -am "change time tracking"-a means all files you changed will be pushed to the remote repository
git push -u origin master
git add .
git commit -am "adding test files"git push -u origin master
git checkout -b update_Readme
gedit README.md
Stores the current contents of the index in a new commit along with a log message from the user describing the changes.
The content to be added can be specified in several ways:
...
4. by using the -a switch with the commit command to automatically
"add" changes from all known files (i.e. all files that are already
listed in the index) and to automatically "rm" files in the index
that have been removed from the working tree, and then perform the
actual commit;
git commit -am "added some text to readme"To update the repository, we have to "push" the local branch "update_Readme", to the origin.
git push origin update_Readme
git checkout master
git fetch upstreamgit-rebase - Forward-port local commits to the updated upstream head
git rebase upstream/master
%run yourscript.pyWhile debugging exeptions, I prefer this over embedding ipython,
%debugYou can now use all the pdb features (pdb commands) as well as ipython functionality (think tab completion).
u
Test the changed code, by rerunning the changed function or script.%load_ext autoreload %autoreload 2