Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/AsyncStageout-HEAD/src/python/AsyncStageOut/FilesCleaner.py   AsyncStageout(Download)
from WMCore.Agent.Harness import Harness
from AsyncStageOut.CleanerDaemon import CleanerDaemon
from AsyncStageOut import execute_command
import logging
import threading
                else: raise
            command = 'tar -czf %s/logs_%s.tar.gz %s/* ; rm -rf %s/*' % ( archive_dir, str(time.time()), log_dir, log_dir )
            out, error, retcode = execute_command(command)
            if retcode != 0 :
                msg = "Error when archiving %s : %s"\

src/a/s/AsyncStageout-HEAD/src/python/AsyncStageOut/AsyncTransfer.py   AsyncStageout(Download)
from AsyncStageOut.TransferDaemon import TransferDaemon
#from AsyncStageOut.LFNSourceDuplicator import LFNSourceDuplicator
from AsyncStageOut import execute_command
import os, errno
import time, datetime
                else: raise
            command = 'tar -czf %s/logs_%s.tar.gz %s/* ; rm -rf %s/*' % ( archive_dir, str(time.time()), log_dir, log_dir )
            out, error, retcode = execute_command(command)
            if retcode != 0 :
                msg = "Error when archiving %s : %s"\