source: trunk/vizservers/start_viz.sh.in @ 852

Last change on this file since 852 was 852, checked in by dkearney, 17 years ago

adding time limit of 20 minutes, as requested by rick, "as a stopgap measure to ensure that the render servers don't get bogged down by spinning nanovis processes"

  • Property svn:executable set to *
File size: 765 bytes
RevLine 
[749]1#! /bin/sh
2
3DISPLAY=:0
4export DISPLAY
5
[753]6install_dir=@prefix@
[749]7dir=$( mktemp -d /tmp/nanorun.XXXXXX )
8
[753]9PATH=${dir}/bin:$PATH
[749]10LD_LIBRARY_PATH=${dir}/lib:$LD_LIBRARY_PATH
[760]11PYMOL_PATH=${dir}/lib/pymol
12export PATH LD_LIBRARY_PATH PYMOL_PATH
[749]13
[757]14cp -r ${install_dir}/* ${dir}
[749]15
16cd ${dir}
17
[852]18minutes=20
19ulimit -t $(expr ${minutes} \* 60 )
20
[760]21#${dir}/bin/nanoscale -d -b 2000 -s 172.18.3.255 -l 2000 -c "${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources"
22#${dir}/bin/nanoscale -d -b 2000 -s 172.18.3.255 -l 2020 -c "${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
23${dir}/bin/nanoscale -b 2000 -s 172.18.3.255 -l 2000 -c "${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources" -l 2020 -c "${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
Note: See TracBrowser for help on using the repository browser.