24 printf(
"Using AliEn version %s\n", alien->GetInfo());
27 printf(
"Current directory is %s\n", alien->
Pwd());
30 Long_t size, flags, modtime;
31 if (alien->GetPathInfo(testdir, &size, &flags, &modtime) == 0) {
33 alien->
Rmdir(testdir);
37 alien->
Mkdir(testdir);
42 printf(
"Current directory is %s\n", alien->
Pwd());
46 char lfn[32], pfn[256];
47 for (i = 0; i < nfiles; i++) {
48 sprintf(lfn,
"test-%d.root", i);
49 sprintf(pfn,
"rfio:/castor/cern.ch/user/r/rdm/mytest-%d.root", i);
50 alien->AddFile(lfn, pfn, 1000000000);
57 for (i = 0; i < nfiles; i++) {
58 sprintf(lfn,
"test-%d.root", i);
59 char *pf = alien->GetPhysicalFileName(lfn);
61 printf(
"last pfn retrieved is: %s\n", pf);
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.