Skip to content

Instantly share code, notes, and snippets.

@rwest
Created March 11, 2010 20:58
Show Gist options
  • Save rwest/329642 to your computer and use it in GitHub Desktop.
Save rwest/329642 to your computer and use it in GitHub Desktop.
chemkin
!#/bin/sh
echo "Which version of chemkin?"
echo " Chemkin Regular (21 seats)"
echo " Chemkin Pro (1 seat)"
OPTIONS="standard pro"
select opt in $OPTIONS; do
if [ "$opt" = "standard" ]; then
xterm -ls -title 'Chemkin Regular - do not close before chemkin!' -bg grey -e ksh "
source /home/reaction/chemkin15101_linuxx8664/bin/chemkin_setup.ksh
echo 'QUIT CHEMKIN BEFORE CLOSING THIS WINDOW OR YOU MAY NOT CHECK IN THE LICENCE';
chemkin-not-pro " &
exit
elif [ "$opt" = "pro" ]; then
xterm -ls -title 'Chemkin Pro - do not close before chemkin!' -bg grey -e ksh "
source /home/reaction/chemkin15101_linuxx8664/bin/chemkinpro_setup.ksh;
echo 'QUIT CHEMKIN BEFORE CLOSING THIS WINDOW OR YOU MAY NOT CHECK IN THE LICENCE';
chemkin " &
exit
else
echo bad option
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment