Changeset - e7953e5dac1e
[Not reviewed]
default
0 1 0
Ethan Zonca (ethanzonca) - 16 years ago 2010-02-23 22:38:38
e@ethanzonca.com
Updates to uploading
1 file changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -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");
0 comments (0 inline, 0 general)