Open shouldsee opened 7 years ago
These are the contents of the script used by the Orengo group to open a '.rasscript' file:
#!/bin/csh
# Notes for when someone asks you to get Rasmol scripts working on Windows:
# * Use a .bat file (not a .com, which is a compiled binary that will produce horrible
# errors if it's filled with text commands). If the browser's browse diaglogue window only wants to
# show you a list of Application Files that doesn't include .bat files, then just type in the
# name of the specific file.
# * Windows uses %1 rather than $1.
# * You don't need much from this script, just something like:
# cd "c:\Program Files\RasWin"
# raswin.exe -script %1
#
# [Tony Lewis, 15th Nov 2012]
cd /cath/data/current/pdb/
setenv PATH ${PATH}:${HOME}/other_rasmol:/LINUX/local/bin:/usr/bin:/usr/bin/X11
setenv DISPLAYDEPTH `xdpyinfo | grep depth | grep root | grep -Po '\d+'`
if ($DISPLAYDEPTH == "8") then
echo Calling a rasmol for a 8 bit display - calling rasmol.8
xterm -e rasmol-8bit -script "$1"
else if ($DISPLAYDEPTH == "16") then
echo Calling a rasmol for a 16 bit display - calling rasmol
xterm -e rasmol-16bit -script "$1"
else if ($DISPLAYDEPTH == "24") then
echo Calling a rasmol for a 32 bit display - calling rasmol.32
xterm -e rasmol-32bit -script "$1"
else if ($DISPLAYDEPTH == "32") then
echo Calling a rasmol for a 32 bit display - calling rasmol.32
xterm -e rasmol-32bit -script "$1"
endif
That's great! Thank you @nataliedawson
@ilsenatorov
This is the shell script I use for automatically open a ".rasscript".
rasscript.com