Changeset 1131
- Timestamp:
- Aug 27, 2008, 2:00:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/start_viz.sh.in
r1111 r1131 5 5 6 6 broadcast="192.168.200.255" 7 install_dir="@prefix@"7 render_dir="@prefix@" 8 8 nanoscale_port=2000 9 9 nanovis_port=2000 10 10 pymol_port=2020 11 11 12 dir=$( mktemp -d /tmp/nanorun.XXXXXX ) 12 # Build the name of the run directory. This is where nanoscale and the 13 # visualization programs will reside. The directory name is the same as the 14 # render directory. 15 dir="/tmp/`basename $render_dir`" 13 16 14 17 PATH=${dir}/bin:$PATH 15 18 LD_LIBRARY_PATH=${dir}/lib:$LD_LIBRARY_PATH 16 19 PYMOL_PATH=${dir}/lib/pymol 20 17 21 export PATH LD_LIBRARY_PATH PYMOL_PATH 18 22 … … 21 25 pymolproxy="${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0" 22 26 23 cp -r ${install_dir}/* ${dir} 27 # Copy from render directory if the run copy doesn't already exist. 28 # Otherwise use what's there. This means that successive invocations 29 # of nanoscale won't create their own run directories (only the first 30 # one will). 31 32 if test -f "$dir" ; then 33 echo "Reusing previously installed version from $render_dir" 34 else 35 echo "Copying rappture from $render_dir" 36 mkdir -p $dir 37 tar -C ${render_dir} -clf - . | tar -C $dir -xpf - 38 fi 24 39 25 40 cd ${dir} 26 41 42 # Don't let nanoscale run and the visualization servers run away. 43 # Limit cpu time to 20 minutes. 27 44 minutes=20 28 45 ulimit -t $(expr ${minutes} \* 60 ) 29 46 30 #$nanoscale -d -l $nanovis_port -c $nanovis 31 #$nanoscale -d -l $pymol_port -c $pymolproxy 47 echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\"" 48 $nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy" 32 49 33 #echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\""34 #$nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy"35 36 echo "$nanoscale -l $nanovis_port -c \"$nanovis\""37 $nanoscale -l $nanovis_port -c "$nanovis"
Note: See TracChangeset
for help on using the changeset viewer.