void alien()
{
int nfiles = 10;
"-domain=cern.ch");
delete alien;
return;
}
printf("Using AliEn version %s\n", alien->GetInfo());
printf(
"Current directory is %s\n", alien->
Pwd());
if (alien->GetPathInfo(testdir, &size, &flags, &modtime) == 0) {
}
printf(
"Current directory is %s\n", alien->
Pwd());
char lfn[32], pfn[256];
for (i = 0; i < nfiles; i++) {
sprintf(lfn, "test-%d.root", i);
sprintf(pfn, "rfio:/castor/cern.ch/user/r/rdm/mytest-%d.root", i);
alien->AddFile(lfn, pfn, 1000000000);
}
for (i = 0; i < nfiles; i++) {
sprintf(lfn, "test-%d.root", i);
char *pf = alien->GetPhysicalFileName(lfn);
if (i == nfiles-1)
printf("last pfn retrieved is: %s\n", pf);
delete [] pf;
}
delete alien;
}
R__EXTERN TSystem * gSystem
virtual Bool_t Cd(const char *="", Bool_t=kFALSE)
virtual const char * Pwd(Bool_t=kFALSE)
virtual Int_t Mkdir(const char *="", Option_t *="", Bool_t=kFALSE)
virtual Bool_t Rmdir(const char *="", Option_t *="", Bool_t=kFALSE)
static TGrid * Connect(const char *grid, const char *uid=0, const char *pw=0, const char *options=0)
The grid should be of the form: <grid>://<host>[:<port>], e.g.
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void ls(Option_t *option="") const
The ls function lists the contents of a class on stdout.
virtual const char * Getenv(const char *env)
Get environment variable.