Ignore:
Timestamp:
08/22/06 09:40:48 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r7902 r7907  
    212212catalog=$setuppath/$magfav #current catalogfile
    213213diff=$setuppath/.diff #file to store difference
    214 #addresses to which the changes are sent
    215 adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"
    216214
    217215#getting new catalogfiles
     
    240238         cat $diff | grep '<'  >> $scriptlog 2>&1
    241239         echo " -> please check the file $catfile" >> $scriptlog 2>&1
    242          #inform $adr about removed lines
     240         #inform $adrs about removed lines
    243241         nail -s 'catalogfile - removed lines' $adrs < $diff
    244242         exit
     
    262260         exit
    263261      fi
    264       #inform $adr about changes
     262      #inform $adrs about changes
    265263      echo "file has been rsynced sucessfully -> sending email" >> $scriptlog 2>&1
    266264      nail -s 'new catalogfile installed - new lines'  $adrs < $diff
     
    273271      cat $diff | grep '<'  >> $scriptlog 2>&1
    274272      echo " -> please check the file $catfile" >> $scriptlog 2>&1
    275       #inform $adr about removed lines
     273      #inform $adrs about removed lines
    276274      nail -s 'catalogfile - removed lines' $adrs < $diff
    277275      exit
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7902 r7907  
    2727# This a resource file for the scripts, in which the standard paths and
    2828# functions, which are needed more often are stored.
    29 #
    30 
    31 export ROOTSYS=/opt/root_v4.04.02g
    32 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    33 export PATH=$PATH:$ROOTSYS/bin
     29# Only constant variables are stored here, changing variables are stored
     30# in datacenter/scripts/setup
     31#
     32
     33source `dirname $0`/setup
    3434
    3535mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
    36 
    3736macrospath=$mars/datacenter/macros
    3837scriptspath=$mars/datacenter/scripts
    3938
    40 logpath=/magic/datacenter/autologs
    41 lockpath=/magic/datacenter/locks
    42 listpath=/magic/datacenter/lists
    43 setuppath=/magic/datacenter/setup
    44 
    45 datapath=/magic/data
    46 subsystempath=/magic/subsystemdata
    47 sequpath=/magic/sequences
    48 datasetpath=/magic/datasets
    49 
    5039webpath=/www/htdocs/datacenter
    5140
     
    5342
    5443check="ok"
    55 
    5644
    5745#failed codes
     
    8270Ffillganymed=21
    8371
    84 
    85 
     72# setup for jobmanager
     73steps=$mars/steps.rc
     74
     75pno=0
     76pnototal=0
     77running=0
     78queued=0
     79runningscript=0
     80queuedscript=0
     81
     82
     83function setzero()
     84{
     85   val=$@
     86   if [ "$val" == "" ]
     87   then
     88      test=`condor_q -global`
     89      if [ "$test" == "" ]
     90      then
     91         echo $max
     92      else
     93         echo 0
     94      fi
     95   else
     96      echo $val
     97   fi
     98}
     99
     100
     101
     102
     103# in the following the function, which are needed by several scripts, are
     104# defined
     105
     106# function to exit a script properly
    86107function finish()
    87108{
     
    92113}
    93114
     115# function to make sure that a directory is made
    94116function makedir()
    95117{
     
    105127}
    106128
     129# function to check if a process is already locked
    107130function checklock()
    108131{
     
    119142}
    120143
     144# function calling the macro, which is producing the todo-list
    121145function getdolist()
    122146{
     
    164188}
    165189
     190# function calling the macro to set the status, after a process has finished
    166191function setstatus()
    167192{
Note: See TracChangeset for help on using the changeset viewer.