예제 #1
0
파일: resource.py 프로젝트: ucphhpc/migrid
def default_store_clean_command(node_config):
    """Command to clean store on resource using remote node storage"""
    return r'ssh -n %s %s@%s "%s"' % (
        ' '.join(default_ssh_options()), node_config['storage_user'],
        node_config['storage_node'], local_store_clean_command(node_config))
예제 #2
0
파일: resource.py 프로젝트: heromod/migrid
def default_store_clean_command(execution_dir, execution_node):
    return r'ssh %s %s \\"%s\\"' % (' '.join(default_ssh_options()),
                                    execution_node,
                                    local_store_clean_command(execution_dir,
                                    execution_node))
예제 #3
0
파일: resource.py 프로젝트: ucphhpc/migrid
def default_exe_clean_command(node_config):
    """Command to clean exe on resource using remote node execution"""
    return r'ssh -n %s %s@%s "%s"' % (
        ' '.join(default_ssh_options()), node_config['execution_user'],
        node_config['execution_node'], local_exe_clean_command(node_config))
예제 #4
0
파일: resource.py 프로젝트: heromod/migrid
def default_exe_status_command(execution_dir, execution_node):
    pgid_file = execution_dir + 'job.pgid'
    return r'ssh %s %s  \"MIG_EXE_PGID=$mig_exe_pgid ; if [ \\\\\\`ps -o pid= -g \\\\\\$MIG_EXE_PGID | wc -l \\\\\\` -eq 0 ]; then exit 1; else exit 0;fi \"'\
         % (' '.join(default_ssh_options()), execution_node)