Changes between Version 9 and Version 10 of GridTutorial


Ignore:
Timestamp:
Mar 23, 2016 4:49:47 PM (6 years ago)
Author:
carlos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GridTutorial

    v9 v10  
    1010}}}
    1111
    12 * Para obtener información del proxy generado ejecute:
     12* Para obtener información del proxy generado ejecute :
    1313{{{
    1414#!sh
     
    2828}}}
    2929
    30 {{{
    31 cat <<EOF > job.jdl
    32 Executable = "hostname";
    33 StdOutput = "hostname.out";
    34 StdError = "hostname.err";
    35 OutputSandbox = {"hostname.err","hostname.out"};
    36 Arguments = "-f";
     30* Una vez listados los recursos, enviaremos un job simple a uno de los CE listados.  :
     31
     32
     33{{{
     34#!sh
     35[user@ui ~]$ cat > hello.jdl << EOF
     36Executable = "hello.sh" ;
     37CpuNumber = 1;
     38StdOutput = "stdout.txt";
     39StdError = "stderr.txt";
     40InputSandbox = {"hello.sh"};
     41OutputSandbox = {"stdout.txt", "stderr.txt"};
     42Requirements = other.GlueCEUniqueID == "ce.ceta-ciemat.es:8443/cream-sge-ibtut.cg";
    3743EOF
    38 }}}
    39 
    40 {{{
    41 cat hello.jdl
    42 #: the name of the file which will be actually executed
    43 Executable = "hello.sh" ;
    44 
    45 CpuNumber = 1;
    46 
    47 # the name of the file where standard output stream will be redirected
    48 StdOutput = "stdout.txt";
    49 
    50 # the name of the file where standard error stream will be redirected
    51 StdError = "stderr.txt";
    52 
    53 # list of local files which will be transferred to
    54 # the remote resource before the execution
    55 InputSandbox = {"hello.sh"};
    56 
    57 # list of remote files which will be transferred from the resource
    58 # after the execution
    59 OutputSandbox = {"stdout.txt", "stderr.txt"};
    60 Requirements = ( other.GlueCEUniqueID == "ce.ceta-ciemat.es:8443/cream-sge-ibtut.cg" ||
    61                other.GlueCEUniqueID == "cream01-egi.bifi.unizar.es:8443/cream-slurm-tutiber" );
    62 }}}
    63 
    64 
    65 {{{
    66  cat hello.sh
     44[user@ui ~]$ cat > hello.sh << EOF
    6745#!/bin/sh
    6846echo "Hello World - from $HOSTNAME"
    6947echo -n "It's "
    7048date
    71 
     49EOF
    7250}}}
    7351