From 40274ba7dcbf5f8c4062e24e725098fed6a9d27e Mon Sep 17 00:00:00 2001 From: chartl Date: Sun, 19 Sep 2010 04:30:48 +0000 Subject: [PATCH] Do this the right way git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4310 348d0f76-0448-11de-a6fe-93d51630548a --- python/lsf_post_touch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/lsf_post_touch.py b/python/lsf_post_touch.py index 47cc259be..ec0e1b563 100755 --- a/python/lsf_post_touch.py +++ b/python/lsf_post_touch.py @@ -1,10 +1,10 @@ import sys import os -status = sys.argv[1] directories = list() +status = os.getenv("LSB_JOBEXIT_STAT") -for j in range(2,len(sys.argv)) : +for j in range(1,len(sys.argv)) : directories.append(sys.argv[j]) -if ( status == "0" ): +if ( status == "0" or status == 0): os.system("touch "+" ".join(directories))