Open main menu

CDOT Wiki β

Changes

Add IPv6 Support to Condor

1,042 bytes added, 14:44, 12 November 2008
Project News
*** csh: /usr/condor.csh
**Startup Condor
***# /usr/sbin/condor_master
* Install Submit the first Condorjob** Write a small program in C, file name is simple.c stored in /home/condor, code is as below*** #include <stdio.h> ***main(int argc, char **argv)***{*** int sleep_time;*** int input;*** int failure; *** if (argc != 3) {*** printf("Usage: simple <sleep-time> <integer>\n");*** failure = 1;*** } else {*** sleep_time = atoi(argv[1]);*** input = atoi(argv[2]); *** printf("Thinking really hard for %d seconds...\n", sleep_time);*** sleep(sleep_time);*** printf("We calculated: %d\n", input * 2);*** failure = 0;*** }*** return failure;***}** Compile the simple.c*** $ gcc -o simple simple.c** Create submit file named simple.sub as below***Universe = vanilla***Executable = simple***Arguments = 4 10***Log = simple.log***Output = simple.out***Error = simple.error***Queue** Submit the job*** $ condor_submit simple.sub** Check the queue*** $ condor_q
1
edit