Sunday, June 10, 2007

FermiId

If you want to know your FermiId (I didn't find any easy web-display):
login on a fnal machine
$> ssh fnalu.fnal.gov
then
$> setup telephone
$> telephone -id gerbaudo

Friday, June 08, 2007

tar through ssh

tar cf - ./PORTISHEAD-02-DUMMY | ssh pucms1 tar xf - -C /tmp/gerbaudo/

Thursday, June 07, 2007

find file in a date range

# find files modified in the first quarter of 2007
touch -t 200701010000 /tmp/newerstart
touch -t 200703312359 /tmp/newerend

find tmp \( -newer /tmp/newerstart -a \! -newer /tmp/newerend \) -print

checking quota

How to check your quota on
  • lxplus: fs listquota (fs lq)
  • fnal: quota -s

Tuesday, June 05, 2007

more CMSSW cvs

some more examples: using tags and checkout to a directory:

cvs tag -R -r "my_tag" ./Tutorial/MyPackage

mkdir ./Tutorial
cvs co -PA -r "working_with_CMSSW_1_3_0" -d ./Tutorial UserCode/gerbaudo/Tutorial

N.B. the "A" flag is essential, otherwise you'll be stuck with sticky tags and you won't be able to commit changes...