From tony@fnal.gov Mon Mar 8 18:29:34 1999 Date: Tue, 01 Dec 1998 15:32:35 -0600 (CST) From: Antonio Wong Chan To: run2farms@fnal.gov Subject: Farm Batch System (FBS) Hi, Dec. 1, 1998 Is the FBS up and running? We at CDF have a working version of the Production Executable, and we have already tested it on fnpcc. I would like to start exercising it using FBS, but the instructions as per FBS User's Guide (dated Nov. 19, 1998) don't work (the commands "setup farms", "farm status", etc are not recognized on fnpcc). What is the current procedure for using FBS from fnpcc? Thanks. Cheers, Antonio From ivm@hppc Mon Mar 8 18:29:49 1999 Date: Tue, 01 Dec 1998 15:36:22 -0600 From: Igor Mandrichenko To: Antonio Wong Chan , run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) On Dec 1, 3:32pm, Antonio Wong Chan wrote: > Subject: Farm Batch System (FBS) > Hi, Dec. 1, 1998 > > Is the FBS up and running? We at CDF have a working version > of the Production Executable, and we have already tested it > on fnpcc. I would like to start exercising it using FBS, but > the instructions as per FBS User's Guide (dated Nov. 19, 1998) > don't work (the commands "setup farms", "farm status", etc are > not recognized on fnpcc). What is the current procedure for > using FBS from fnpcc? Antonio, before using "setup" command, you should set up your standard Fermi User Environment. For that, you have to: source /usr/local/etc/setups.csh or . /usr/local/etc/setups.sh depending on the shell you are using. And yes, FBS is up and running, as far as I know. Igor -- Igor Mandrichenko Computing Division Fermi National Accelerator Laboratory E-mail: ivm@fnal.gov From kreymer@fnal.gov Mon Mar 8 18:30:09 1999 Date: Tue, 01 Dec 1998 15:55:20 -0600 (CST) From: Art Kreymer To: run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) I have adjusted cdf's local startup script on FNPCC to include the /fnal/ups/db database. The shared products should now be available with no further user action. From tony@fnal.gov Mon Mar 8 18:30:39 1999 Date: Tue, 01 Dec 1998 18:53:51 -0600 (CST) From: Antonio Wong Chan To: Igor Mandrichenko Cc: run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) Hi Igor, Dec. 1, 1998 Thanks for the tip. I can now submit jobs via FBS. However, we still are having problems using FBS on our CDF Production Executable. The errors I get are related to the CDF environment (i.e., it doesn't recognize the environment variable CDFSOFT2_DIR, it cannot set up the logical name CSRTPAR, etc). Do the jobs running to FBS lose the environment in which they were submitted? Is there a way to get around this in FBS? Or do I have to explicity write out the full directory path, instead of the environment variables? Cheers, Antonio From pyeh@phys.sinica.edu.tw Mon Mar 8 18:32:08 1999 Date: Wed, 02 Dec 1998 10:02:00 -0800 (PST) From: Ping Yeh / Academia Sinica To: Antonio Wong Chan Cc: Igor Mandrichenko , run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) Hi Tony, In the FBS user's guide it is written that environment variables are not retained when job runs. I guess that instead of submitting an executable, you may try submitting a script which get all the needed CDF environment variables and run the executable. cheers, Ping From kreymer@fnal.gov Mon Mar 8 18:32:26 1999 Date: Wed, 02 Dec 1998 08:39:15 -0600 (CST) From: Art Kreymer To: Antonio Wong Chan Cc: Igor Mandrichenko , run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) It is likely that the scripts submitted through FBS will have to start up with something like exec tcsh source ~cdfsoft/cdf2.cshrc setup cdfsoft2 to establish the normal working environment. From ivm@hppc Mon Mar 8 18:32:38 1999 Date: Wed, 02 Dec 1998 09:02:39 -0600 From: Igor Mandrichenko To: Antonio Wong Chan Cc: run2farms@fnal.gov Subject: Re: Farm Batch System (FBS) On Dec 1, 6:53pm, Antonio Wong Chan wrote: > Subject: Re: Farm Batch System (FBS) > Hi Igor, Dec. 1, 1998 > > Thanks for the tip. I can now submit jobs via FBS. > > However, we still are having problems using FBS on our > CDF Production Executable. The errors I get are related > to the CDF environment (i.e., it doesn't recognize the > environment variable CDFSOFT2_DIR, it cannot set up the > logical name CSRTPAR, etc). Do the jobs running to FBS > lose the environment in which they were submitted? > > Is there a way to get around this in FBS? Or do I have > to explicity write out the full directory path, instead > of the environment variables? > > Cheers, > > Antonio >-- End of excerpt from Antonio Wong Chan Antonio, As it is stated in the FBS User's Guide, jobs do lose all the environment which they were submitted from. There are few variables FBS defines for the job when it starts: HOME PC_BATCH_JOB_SIZE PC_BATCH_JOB_ID PC_BATCH_PROC_NO PC_BATCH_SCRATCH Batch processes always start in the user's home directory. Variable PATH is mentioned in the User's Guide by mistake. User's executable (usually script) has to create all the environment required for the batch processes to run. Igor -- Igor Mandrichenko Computing Division Fermi National Accelerator Laboratory E-mail: ivm@fnal.gov