ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/JOBROBOT/AddToTasksFinishedToday
Revision: 1.3
Committed: Wed Apr 21 13:10:23 2010 UTC (15 years ago) by asciaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
Log Message:
Changed name of glite command

File Contents

# Content
1 #!/bin/sh
2 echo ""
3 echo Add this task directory to today\'s list
4 echo ""
5 parent=`grep "Collection ID" crab_0_*/log/crab.log|awk '{print $4'}`
6 echo CollectionId: $parent
7 #glite-job-status $parent
8 #glite-job-status -v 3 $parent
9 timestamp=`glite-wms-job-logging-info -v 1 $parent| grep Timestamp|tail -1|cut -d= -f2`
10 day=`date -u -d"$timestamp" +%y%m%d`
11 echo time of last loggingInfo entry: $timestamp
12 echo DAY string of task completion : $day
13 echo ""
14
15 thisSiteDir=`pwd | cut -d'/' -f10,11`
16 taskId=`pwd | cut -d'/' -f12`
17 newSiteDir=/data/JobRobot/files/TasksForToday/${day}/${thisSiteDir}
18 cmd="mkdir -pv $newSiteDir"
19 #echo Exdcuting: $cmd
20 $cmd
21
22 cmd="ln -sv `pwd` ${newSiteDir}/${taskId}"
23 #echo Exdcuting: $cmd
24 $cmd
25
26 echo ""