Mod:Hunt Research Group/node-script
Host hpc
Hostname login.cx1.hpc.ic.ac.uk
cat .bashrc
- Sample .bashrc for SuSE Linux
- Copyright (c) SuSE GmbH Nuernberg
- There are 3 different types of shells in bash: the login shell, normal shell
- and interactive shell. Login shells read ~/.profile and interactive shells
- read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
- settings made here will also take effect in a login shell.
- NOTE: It is recommended to make language settings in ~/.profile rather than
- here, since multilingual X sessions would not work properly if LANG is over-
- ridden in every subshell.
- Some applications read the EDITOR variable to determine your favourite text
- editor. So uncomment the line below and enter the editor of your choice :-)
- export EDITOR=/usr/bin/vim
- export EDITOR=/usr/bin/mcedit
- For some news readers it makes sense to specify the NEWSSERVER variable here
- export NEWSSERVER=your.news.server
- If you want to use a Palm device with Linux, uncomment the two lines below.
- For some (older) Palm Pilots, you might need to set a lower baud rate
- e.g. 57600 or 38400; lowest is 9600 (very slow!)
- export PILOTPORT=/dev/pilot
- export PILOTRATE=115200
- export PARA_ARCH=MPI
- export PARNODES=2
- export TURBODIR=/home/niederme/TURBOMOLE
- export PATH=$TURBODIR/scripts:$PATH
- export PATH=$TURBODIR/bin/`sysname`:$PATH
- export PATH=$PATH:/home/niederme/bin/openbabel/bin/
test -s ~/.alias && . ~/.alias || true
- ~/.bashrc: executed by bash(1) for non-login shells.
- see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
- for examples
- If not running interactively, don't do anything
[ -z "$PS1" ] && return
- don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
- ... and ignore same sucessive entries.
export HISTCONTROL=ignoreboth
- check the window size after each command and, if necessary,
- update the values of LINES and COLUMNS.
shopt -s checkwinsize
- make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
- set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
- set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in xterm-color)
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
;;
- )
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
;;
esac
- Comment in the above and uncomment this below for a color prompt
- PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
- If this is an xterm set the title to user@host:dir
case "$TERM" in xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
;;
- )
;;
esac
- Alias definitions.
- You may want to put all your additions into a separate file like
- ~/.bash_aliases, instead of adding them here directly.
- See /usr/share/doc/bash-doc/examples in the bash-doc package.
- if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
- fi
- enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`" alias ls='ls --color=auto' #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long'
fi
- some more ls aliases
alias ..='cd ..' alias grepfreq='egrep "SCF D|Low|Zero-point correction|NIm"' alias ll='ls -lh' alias x='exit' alias vic='vi control'
- alias gop='rungOpenMol'
- alias subturbo='subturbo -v 510'
- alias molden='/home/niederme/bin/gmolden4.6.linux -l -m -z -A -S'
alias cpv='cp -v' alias rmv='rm -v' alias gaussview='gview' alias myq='qstat'
alias home="cd" alias work="cd \$WORK" alias tmp="cd \$TMPDIR" alias force="grep -i 'Maximum Force'" alias dist="grep -i 'Maximum Disp'"
module load gaussian module load gnuplot module load scipy/2009-08-25 module load python/2.6.4 module load openbabel/2.2.3 module load java module load gaussview/5.09
- alias gop='~/gOpenMol-3.00/bin/rungOpenMol'
- alias cq='ssh chemie cq'
- alias ort='myq -m'
- alias myqstat='myq -acl'
- alias la='ls -A'
- alias l='ls -CF'
- enable programmable completion features (you don't need to enable
- this, if it's already enabled in /etc/bash.bashrc and /etc/profile
- sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
- !/bin/sh
- submit jobs to the que with this script using the following command:
- rng4 is this script
- jobname is a name you will see in the qstat command
- name is the actual file minus .com etc it is passed into this script as ${in}
- qsub rng4_8 -N jobname -v in=name
- batch processing commands
- PBS -l walltime=119:59:00
- PBS -lselect=1:ncpus=8:mem=7800MB
- PBS -k o
- PBS -q pqph
- PBS -m ae
- load modules
module load gaussian/g09
- check for a checkpoint file
- variable PBS_O_WORKDIR=directoiry from which the job was sumbited.
test -r $PBS_O_WORKDIR/${in}.chk
if [ $? -eq 0 ]
then
echo "located $PBS_O_WORKDIR/${in}.chk"
cp $PBS_O_WORKDIR/${in}.chk $TMPDIR/.
else
echo "no checkpoint file $PBS_O_WORKDIR/${in}.chk"
fi
- run gaussian
g09 $PBS_O_WORKDIR/${in}.com
cp $TMPDIR/${in}.chk /$PBS_O_WORKDIR/.
- cp *.chk /$PBS_O_WORKDIR/pbs_${in}.chk
- test -r $TMPDIR/fort.7
- if [ $? -eq 0 ]
- then
- cp $TMPDIR/fort.7 /$PBS_O_WORKDIR/${in}.mos
- fi
- exit