Index: /issm/trunk/cron/mac_cronfile
===================================================================
--- /issm/trunk/cron/mac_cronfile	(revision 1357)
+++ /issm/trunk/cron/mac_cronfile	(revision 1357)
@@ -0,0 +1,1 @@
+02 22 * * * cd /Users/seroussi/issm/trunk/cron/ && ./nightlyrun.sh "{'cielo_serial'}"
Index: /issm/trunk/cron/nightlyrun.sh
===================================================================
--- /issm/trunk/cron/nightlyrun.sh	(revision 1356)
+++ /issm/trunk/cron/nightlyrun.sh	(revision 1357)
@@ -8,4 +8,10 @@
 echo $suffix;
 }
+
+#Recover package for which we run nightly.
+package=$1;
+
+echo $package
+exit
 
 #create ISSM variables
@@ -57,18 +63,24 @@
 #5: change issm.rc
 cd etc
-cat cluster.rc | sed -e "s/cluster_codepath=\/u\/astrid1\/larour\/issm\/trunk\/bin/cluster_codepath=\/u\/wilkes-r1b\/morlighe\/svn\/issm\/trunk\/cron\/trunk\/bin/g" | sed -e "s/cluster_executionpath=\/u\/wilkes-r1b\/larour\/Testing\/Execution/cluster_executionpath=\/u\/wilkes-r1b\/morlighe\/ExecutionNightlyRun/g"> cluster.bak
+cat cluster.rc | sed -e "s/cluster_codepath=\/u\/wilkes-r1b\/larour\/Ice\/ice1.proto\/bin/cluster_codepath=\/u\/wilkes-r1b\/morlighe\/svn\/issm\/trunk\/cron\/trunk\/bin/g" | sed -e "s/cluster_executionpath=\/home\/larour\/Testing\/Execution/cluster_executionpath=\/u\/wilkes-r1b\/morlighe\/Execution/g"> cluster.bak
 mv cluster.bak cluster.rc
 cd ..
 
 #Launch matlab and the nightly run script
+if [[ package == "" ]]
+	matlab -nojvm -nosplash  > ./nightlylong.log << EOF 
+startup
+nightlyrun;
+EOF
+else
 matlab -nojvm -nosplash  > ./nightlylong.log << EOF 
 startup
-warning off all
-nightlyrun;
+nightlyrun($1);
 EOF
+fi
 
 #removed unused lines to deal with a smaller file
 cat nightlylong.log | egrep 'difference: |NIGHTLYRUNTERMINATEDCORRECTLY' > nightly.log
-#rm nightlylong.log
+rm nightlylong.log
 
 #Build html report
