Re: [O] Re: [BABEL][BUG] Tangle incorrect with variables

2011-04-01 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/31/2011 06:00 PM, Sébastien Vauban wrote:
 Hi Rainer,
 
 Rainer M Krug wrote:
 I get the following tangled output

 --8---cut here---start-8---

 REV=$(cat 'BABEL_TABLE'
 master
 BABEL_TABLE
 )
 STATE=$(cat 'BABEL_TABLE'
 edited
 BABEL_TABLE
 )
   rm -rf ./R
   rm -f ./spreadSim.sub
   REVISION=$REV.$STATE
   tar -xf nsa.$REVISION.tar.gz
   $HOME/R/R/R-2.12.0/bin/Rscript --vanilla -e
 source('./R/generateLatinHypercubeScenarios.R'); doIt()
   for SCENARIO in ./R/scenarios/*.R; do
 export SCENARIO=${SCENARIO#./R/scenarios/}
 qsub nsa.sub
   done
 --8---cut here---end---8---

 Which looks right to me.  Could it be something specific about your
 setup which is causing this issue?

 Sorry - I did not relize that the way the variables are inserted has
 changed - I should have tried the script before asking. It works fine.
 
 For my own understanding, could you explicit what you consider as changed in
 the way the variables are inserted?

It simply read:

REV=69
STATE=edited

Rainer

 
 Best regards,
   Seb
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2V+FEACgkQoYgNqgF2egrIygCggNLBvonVw8sHs4tSuJIVMrLT
fwUAn2fgINZLJsNFMMWa/2M6m0bLL4RS
=NzRp
-END PGP SIGNATURE-



[O] Re: [BABEL][BUG] Tangle incorrect with variables

2011-03-31 Thread Sébastien Vauban
Hi Rainer,

Rainer M Krug wrote:
 I get the following tangled output
 
 --8---cut here---start-8---
 
 REV=$(cat 'BABEL_TABLE'
 master
 BABEL_TABLE
 )
 STATE=$(cat 'BABEL_TABLE'
 edited
 BABEL_TABLE
 )
   rm -rf ./R
   rm -f ./spreadSim.sub
   REVISION=$REV.$STATE
   tar -xf nsa.$REVISION.tar.gz
   $HOME/R/R/R-2.12.0/bin/Rscript --vanilla -e
 source('./R/generateLatinHypercubeScenarios.R'); doIt()
   for SCENARIO in ./R/scenarios/*.R; do
 export SCENARIO=${SCENARIO#./R/scenarios/}
 qsub nsa.sub
   done
 --8---cut here---end---8---
 
 Which looks right to me.  Could it be something specific about your
 setup which is causing this issue?

 Sorry - I did not relize that the way the variables are inserted has
 changed - I should have tried the script before asking. It works fine.

For my own understanding, could you explicit what you consider as changed in
the way the variables are inserted?

Best regards,
  Seb

-- 
Sébastien Vauban