#!/usr/bin/env python # # This file sets up and runs a SAM project. # import os, sys, string, time, signal from re import * from globals import * import run_project ############################################################################ # # Set the following variables to appropriate values # Consult database for valid choices sam_station = "central-analysis" # Consult Database for valid choices project_definition = "load-preco04.00.04-psim01-z-ztautau" # A particular snapshot version, last or new snapshot_version = 'new' # Consult database for valid choices appname = "generic" version = "1" group = "dzero" # The maximum number of files to get from sam max_file_amt = 1000 # for additional debug info use "--verbose" #verbosity = "--verbose" verbosity = "" # Give up on all exceptions give_up = 1 def file_ready(filename): # Replace this python subroutine with whatever you want to do # to process the file that was retrieved. # Your program will only be called in the event of # a successful delivery. # print 'Create local links' print filename os.system('ln -s %s .; sleep 1 &'%filename) time.sleep(1) #os.system('cp %s . '%filename) #time.sleep(10) return