Пример #1
0
#!/usr/bin/env python

import os
import sys
import pylauncher

cmdLineFile = sys.argv[1]
numCoresPerCmd = 4

if len(sys.argv) == 3:
    numCoresPerCmd = int(sys.argv[2])

pylauncher.ClassicLauncher(cmdLineFile, cores=numCoresPerCmd)

sys.exit()
Пример #2
0
#!/usr/bin/env python

import pylauncher

##
## Emulate the classic launcher, using a one liner
##

pylauncher.ClassicLauncher("sleep60", debug="job+host+task")
Пример #3
0
import pylauncher

pylauncher.ClassicLauncher("db_command_lines",debug="job",delay=2)
Пример #4
0
#!/usr/bin/env python

import pylauncher
import sys

task = sys.argv[1]
np = sys.argv[2]

##
## Emulate the classic launcher, using a one liner
##

pylauncher.ClassicLauncher(task,
                           debug="job+task+host+exec+command",
                           cores=np)

Пример #5
0
#!/usr/bin/env python

import pylauncher

##
## test our ssh routines
##

pylauncher.ClassicLauncher("modcommandlines", debug="job+host+task+exec+ssh")
#pylauncher.ClassicLauncher("commandlines")
Пример #6
0
import pylauncher

pylauncher.ClassicLauncher("random_command_lines")
#!/usr/bin/env python

import pylauncher

##
## Emulate the classic launcher, using a one liner
##

#pylauncher.ClassicLauncher("corecommandlines",debug="job+host+task")
pylauncher.ClassicLauncher("commandlines", debug="job")