             tuplebuildErrors.push(err)
             tuplebuildFuture.return(result)
           else
-            tuplebuildCommand = "echo " + txtFilename + " " + rwsFilename
+            tuplebuildCommand = "cat " + txtFilename + " > " + tupleFilename
             if config.isSSH
               tuplebuildCommand = config.wrapCommand(tuplebuildCommand)
             Process.exec(tuplebuildCommand, Meteor.bindEnvironment((err, stdout, stderr) ->

            scpFuture.return(result)
          ))
          scpFuture.wait()
        rmCommand = "rm -f " + rwsFilename
        if config.isSSH
          rmCommand = config.wrapCommand(rmCommand)
        rmFuture = new Future()

        isTupleStale = true
        tuplebuildFuture = new Future()
        txtFilename = "/tmp" + "/" + set._id + ".tuple"
        tupleFilename = config.dataTempdir + "/" + set._id + ".tuple"
        writeFileFuture = writeFile(txtFilename, set.contents)
        if config.isSSH
          scpCommand = "scp " + config.getSSHOptions() + " -P " + config.port + " " + txtFilename + " " + config.user + "@" + config.host + ":" + txtFilename
