Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Getting access to LHC Computing Grid. One can find a brief introductory material at the RMKI's getting started page, where you can find information on how to get access to LCG. There are also simple examples on that page. Some more practical information on running a typical job. | ||||||||
Line: 70 to 70 | ||||||||
Note1: unfortunately, I encountered that the lcg-cr action often fails (this should be remedied in future). Therefore, it is convenient to put an lcg-cr command into a checker loop: | ||||||||
Added: | ||||||||
> > | #!/bin/sh | |||||||
RESULT=1 | ||||||||
Added: | ||||||||
> > | TRIES=0 | |||||||
while (( $RESULT = 0 )) ; do
lcg-cr --vo cms -d grid100.kfki.hu -l lfn:/grid/cms/alaszlo/destintation/test_file.txt file:/afs/kfki.hu/home/alaszlo/source/test_file.txt![]() | ||||||||
Added: | ||||||||
> > | TRIES=$(($TRIES+1)) if (( $TRIES >= 5 )) ; then echo "lcg-cr failed. Giving up after 5 tries." ; exit 1 ; fi | |||||||
if (( $RESULT = 0 )) ; then sleep 1m ; fi done | ||||||||
Line: 95 to 99 | ||||||||
int main(int argc, char *argv[]) { // Open the datafile for reading. | ||||||||
Changed: | ||||||||
< < | igstream ifile("/grid/cms/alaszlo/some_datafile.dat"); | |||||||
> > | igstream igfile("/grid/cms/alaszlo/some_datafile.dat"); | |||||||
// Extract data from your datafile with 'igstream::operator>>' or with 'igstream::read(char*, int)'. // Close the datafile. | ||||||||
Changed: | ||||||||
< < | ifile.close(); | |||||||
> > | igfile.close(); | |||||||
// Open the datafile for writing. | ||||||||
Changed: | ||||||||
< < | ogstream ofile("/grid/cms/alaszlo/some_datafile.dat"); | |||||||
> > | ogstream ogfile("/grid/cms/alaszlo/some_datafile.dat"); | |||||||
// Write data to your datafile with 'ogstream::operator<<' or with 'ogstream::write(char*, int)'. // Close the datafile. | ||||||||
Changed: | ||||||||
< < | ofile.close(); | |||||||
> > | ogfile.close(); | |||||||
// Open the datafile for reading, through a filter program. | ||||||||
Changed: | ||||||||
< < | igpstream ipfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gunzip --stdout %f"); | |||||||
> > | igpstream igpfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gunzip --stdout %f"); | |||||||
// Extract data from your datafile with 'igpstream::operator>>' or with 'igpstream::read(char*, int)'. // Close the datafile. | ||||||||
Changed: | ||||||||
< < | ipfile.close(); | |||||||
> > | igpfile.close(); | |||||||
// Open the datafile for writing, through a filter program. | ||||||||
Changed: | ||||||||
< < | ogpstream opfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gzip - > %f"); | |||||||
> > | ogpstream ogpfile("/grid/cms/alaszlo/some_datafile.dat.gz", "gzip - > %f"); | |||||||
// Write data to your datafile with 'ogpstream::operator<<' or with 'ogpstream::write(char*, int)'. // Close the datafile. | ||||||||
Changed: | ||||||||
< < | opfile.close(); | |||||||
> > | ogpfile.close(); | |||||||
return 0; } | ||||||||
Line: 139 to 143 | ||||||||
-- AndrasLaszlo - 22 Mar 2006 | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|