Editing
Enter
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[Scripts for VASP]] 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 How to use it in tekla2 terminal: '''enter job-ID''' 4 Example: qli@tekla2:~$ qstat -u qli 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:~$ '''enter 129066''' qli@tekla2:/mnt/sirius00/home_lab_users/nlg/qli/lignin/alpha-O-4/is-reduce3-1$ 5 Notes: It only works in servers' terminal. '''Another version:''' 6 Get into folder for both running and finished Calculations: '''myfunction4() { cd $(dirname $(find . -name "$1" 2> /dev/null | head -n 1 )); }''' '''alias e4=myfunction4''' 7 add them to ~/.bashrc and source it. 8 use command in terminal: e4 *9066 (* is necessary)
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information