# HG changeset patch # User normaldotcom # Date 2010-02-23 22:38:38 # Node ID e7953e5dac1eb3fc64936822c8a62c2dd1218430 # Parent e01acca74331d09df25d9a6d6789feddbb660d68 Updates to uploading diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -449,7 +449,7 @@ void prepareJobPaths(int jobnum,char *da _distren_asprintf(urltoTar, "http://data.distren.org/job%d/job%d.tar.gz", jobnum); // Prepares URL to download from _distren_asprintf(pathtoTar, "%s/stor/jobdata/job%d.tar.gz", datadir, jobnum); // Prepares destination to save to _distren_asprintf(pathtoJobfile, "%s/%s/job.blend", datadir, jobdatapath ); // Prepares the path to the jobfile - _distren_asprintf(urltoOutput, "http://data.distren.org/tmp/", jobdatapath ); // Prepares the URL where output is posted + _distren_asprintf(urltoOutput, "http://data.distren.org/upload.php"); // Prepares the URL where output is posted _distren_asprintf(pathtoXml, "%s/job%d/job%d.xml", datadir, jobnum ); // Prepares the path to the job's XML file free(jobdatapath); } @@ -487,6 +487,7 @@ void slaveTest(){ fprintf(stderr,"Hello!\n"); char tmpString1[100] = ""; char tmpString2[100] = ""; + char *uploadURL = "http://data.distren.org/upload.php"; while(test == 1) { @@ -504,9 +505,7 @@ void slaveTest(){ case 1: fprintf(stderr,"Path to file to upload: "); scanf("%99s", tmpString1); - fprintf(stderr,"URL to upload to: "); - scanf("%99s", tmpString2); - uploadOutput(tmpString1, tmpString2); + uploadOutput(tmpString1, uploadURL); break; case 2: fprintf(stderr,"Remotio not implemented yet!\n");