next up previous contents
Next: JOB Error Messages Up: Grid Exploration Jobs Previous: CE PBS Queue Status   Contents

File Creation Test

To check connectivity, we can use globus-job-run and globus-url-copy as shown in the example that copies a UI local file to a CE node in the grid. Files must be copied to known directories. Every node has a public area at the /tmp mount point. The example is made of simple scripts that perform the following tasks:

N.B. Each command must have the correct path to be executed by globus-job-run, i.e. to create a directory you cannot use mkdir but you must give the correct path /bin/mkdir. If the path is missing globus-job-run fails with the following error message:


$\rightarrow$ GRAM Job failed because the executable does not exist (error code 5)



Directory Creation: glbrun00.sh
$ cat glbrun00.sh
#!/bin/bash
#
globus-job-run adc0015.cern.ch /bin/ls -ltr /tmp | /bin/grep drwx
globus-job-run adc0015.cern.ch /bin/mkdir /tmp/Hnam
globus-job-run adc0015.cern.ch /bin/ls -ltr /tmp | /bin/grep drwx
glbrun00.sh Output
$ ./glbrun00.sh
drwxr-xr-x 3 atlas006 atlas 4096 Dec 10 23:03 gfg
drwxr-xr-x 2 edguser root 4096 Dec 16 08:33 logging
drwxr-xr-x 3 atlas006 atlas 4096 Dec 10 23:03 gfg
drwxr-xr-x 2 edguser root 4096 Dec 16 08:33 logging
drwxr-xr-x 2 alice001 alice 4096 Dec 16 13:36 Hnam
File Copy Step: glbrun01.sh
$ cat glbrun01.sh
#!/bin/bash
#
globus-url-copy file:///$HOME/jones/Lcg1-test/myjobs/hnam.jdl \
gsiftp://adc0015.cern.ch/tmp/Hnam/hnam.jdl
$ ./glbrun01.sh
Verify globus Copy: glbrun02.sh
$ cat glbrun02.sh
#!/bin/bash
#
globus-job-run adc0015.cern.ch /bin/ls -ltr /tmp/Hnam/hnam.jdl
globus-job-run adc0015.cern.ch /bin/cat /tmp/Hnam/hnam.jdl
glbrun02.sh Output
$ ./glbrun02.sh
-rw-rw-r-- 1 alice001 alice 119 Dec 16 12:03 /tmp/hnam.jdl
Executable = "/bin/hostname";
StdOutput = "hnam.out";
StdError = "hnam.err";
OutputSandbox = {"hnam.out","hnam.err"};



next up previous contents
Next: JOB Error Messages Up: Grid Exploration Jobs Previous: CE PBS Queue Status   Contents
luvisetto 2003-12-17