~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to allpairs/src.tpds/allpairs_wait.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2008- The University of Notre Dame
 
3
This software is distributed under the GNU General Public License.
 
4
See the file COPYING for details.
 
5
*/
 
6
 
 
7
#include <stdio.h>
 
8
#include <stdlib.h>
 
9
#include <string.h>
 
10
 
 
11
int main(int argc, char** argv) {
 
12
    if(argc != 2) {
 
13
        fprintf(stderr,"Usage: %s <condor-logfile>\n",argv[0]);
 
14
        return 1;
 
15
    }
 
16
    char* command = (char *) malloc((strlen("condor_wait   ")+strlen(argv[1]))*sizeof(char));
 
17
    sprintf(command,"condor_wait %s",argv[1]); 
 
18
    system(command);
 
19
    return 0;
 
20
}