Changeset 2273 in /cluster/svnroot


Ignore:
Timestamp:
Mar 22, 2010 11:26:20 AM (11 years ago)
Author:
fitz
Message:

syncdir got lost too. (#447)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/trees/bin/bccd-syncdir

    r2227 r2273  
    44# across hosts listed in a specified hosts file.
    55#
    6 # The intent of this script is to be used at HPC workshops were
     6# The intent of this script is to be used at HPC workshops where
    77# multiple users are logged in with the same account, working in
    88# personal directories.  In order to run code in parallel, these files
     
    1212# When this script is run, it will generate a "unique" directory for the user
    1313# under /tmp where the user can wreak havok to their heart's content.
    14 
    15 UNIQFILE=/etc/ssh/ssh_host_dsa_key.pub
    16 if ! test -f $UNIQFILE; then
    17         echo "Unique file $UNIQFILE not present!"
    18         exit -1
    19 fi
    2014
    2115if test "x$1" = "x--ni"; then
     
    6155fi
    6256
    63 # Look away!  This is ugly!  I'm using the hosts' public key here
    64 # to grab a unique directory.  I should probably grab $UID and mix
    65 # it in here in case we ever deal with multiple users.
    66 # But for now, this is quick and dirty enough just to test out the
    67 # functionality.
    68 
    69 COMMONDIR=/tmp/`md5sum $UNIQFILE | cut -c -8`
     57COMMONDIR=/tmp/`hostname -s`-$LOGNAME
    7058INCREMENT=`expr 100 / $NUMHOSTS`
    7159
Note: See TracChangeset for help on using the changeset viewer.