Changeset 26188 for gs2-extensions


Ignore:
Timestamp:
2012-09-13T11:31:45+12:00 (12 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)

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.