Changeset 26188

Show
Ignore:
Timestamp:
13.09.2012 11:31:45 (7 years ago)
Author:
jmt12
Message:

Fixing bug where I passed the wrong number of arguments to a sprintf (added cd command, but forgot to add gsdlhomedir)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/src/mpiimport-src/mpiimport.cpp

    r25841 r26188  
    257257      } 
    258258      counter++; 
     259      fprintf(stderr, "[W%d] Received: %s", rank, incoming); 
    259260      if (strcmp (incoming, "end") != 0) 
    260261      { 
     
    290291        else 
    291292        { 
    292           sprintf(command, "bash -c \"cd %s && source setup.bash > /dev/null && %s import.pl -keepold -manifest %s %s > /tmp/gsimport-W%d-%d.log 2>&1\"", affinity, gsdlhomedir, incoming, collection, rank, counter); 
     293          sprintf(command, "bash -c \"cd %s && source setup.bash > /dev/null && %s import.pl -keepold -manifest %s %s > /tmp/gsimport-W%d-%d.log 2>&1\"", gsdlhomedir, affinity, incoming, collection, rank, counter); 
    293294        } 
    294295