Changeset 1131


Ignore:
Timestamp:
Aug 27, 2008, 2:00:24 PM (16 years ago)
Author:
gah
Message:

fixed start_vis not to copy files each invocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/start_viz.sh.in

    r1111 r1131  
    55
    66broadcast="192.168.200.255"
    7 install_dir="@prefix@"
     7render_dir="@prefix@"
    88nanoscale_port=2000
    99nanovis_port=2000
    1010pymol_port=2020
    1111
    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.
     15dir="/tmp/`basename $render_dir`"
    1316
    1417PATH=${dir}/bin:$PATH
    1518LD_LIBRARY_PATH=${dir}/lib:$LD_LIBRARY_PATH
    1619PYMOL_PATH=${dir}/lib/pymol
     20
    1721export PATH LD_LIBRARY_PATH PYMOL_PATH
    1822
     
    2125pymolproxy="${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
    2226
    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
     32if test -f "$dir" ; then
     33  echo "Reusing previously installed version from $render_dir"
     34else
     35  echo "Copying rappture from $render_dir"
     36  mkdir -p $dir
     37  tar -C ${render_dir} -clf - . | tar -C $dir -xpf -
     38fi
    2439
    2540cd ${dir}
    2641
     42# Don't let nanoscale run and the visualization servers run away.
     43# Limit cpu time to 20 minutes.
    2744minutes=20
    2845ulimit -t $(expr ${minutes} \* 60 )
    2946
    30 #$nanoscale -d -l $nanovis_port -c $nanovis
    31 #$nanoscale -d -l $pymol_port -c $pymolproxy
     47echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\""
     48$nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy"
    3249
    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.