Enter: Difference between revisions

From Wiki
Jump to navigation Jump to search
New page: Dear all, I wrote two line commands to get into the calculation directories quickly! 1 Please add these two lines in your ~/.bashrc file in tekla2 myfunction() { cd $(qstat -j "$1" ...
 
No edit summary
Line 5: Line 5:
1  Please add these two lines in your  ~/.bashrc file in tekla2  
1  Please add these two lines in your  ~/.bashrc file in tekla2  


myfunction() { cd $(qstat -j "$1" |grep workdir |awk '{print $2}'); }  
'''myfunction() { cd $(qstat -j "$1" |grep workdir |awk '{print $2}'); } '''
alias enter=myfunction  # you can use other command to replace "enter"
'''alias enter=myfunction  # you can use other command to replace "enter" '''





Revision as of 11:13, 23 January 2017

Dear all,

I wrote two line commands to get into the calculation directories quickly!

1 Please add these two lines in your ~/.bashrc file in tekla2

myfunction() { cd $(qstat -j "$1" |grep workdir |awk '{print $2}'); } alias enter=myfunction # you can use other command to replace "enter"


2 source the bashrc file:

source ~/.bashrc

3 To use it:

In tekla2 terminal: enter job-ID

4 Example:


qli@tekla2:~$ q job-ID prior name user state submit/start at queue slots ja-task-ID


129066 0.52674 opt-Test   qli          r     01/23/2017 09:07:36 c24m128.q@tekla2152               24        
129067 0.52674 opt-Test   qli          r     01/23/2017 09:07:45 c24m128.q@tekla2153               24        

qli@tekla2:~$ qli@tekla2:~$ enter 129066 qli@tekla2:/mnt/sirius00/home_lab_users/nlg/qli/lignin/alpha-O-4/is-reduce3-1$