Condor submit file could look like:
+Group="GRAD"
+Project="AI_ROBOTICS"
+ProjectDescription=""
Universe = vanilla
Getenv = True
Log = ../SUN_download_condor.log
Output = ../SUN_download_condor.out
Error = ../SUN_download_condor.err
Executable = ./download_SUN_large_panos.py
Queue 100
And the python script itself could look like:
#!/usr/bin/env python
import os
import urllib
import sys
def touch(fname, times=None):
with open(fname, 'a'):
os.utime(fname, times)
target_root='./dataset/9104x4552/';
if not os.path.exists(target_root):
os.mkdir(target_root);
Note the header at the top (shown in bold). This is important for condor to know how to execute the script.
Also, obviously, the python script would have to have executable permissions.
+Group="GRAD"
+Project="AI_ROBOTICS"
+ProjectDescription=""
Universe = vanilla
Getenv = True
Log = ../SUN_download_condor.log
Output = ../SUN_download_condor.out
Error = ../SUN_download_condor.err
Executable = ./download_SUN_large_panos.py
Queue 100
And the python script itself could look like:
#!/usr/bin/env python
import os
import urllib
import sys
def touch(fname, times=None):
with open(fname, 'a'):
os.utime(fname, times)
target_root='./dataset/9104x4552/';
if not os.path.exists(target_root):
os.mkdir(target_root);
Note the header at the top (shown in bold). This is important for condor to know how to execute the script.
Also, obviously, the python script would have to have executable permissions.
No comments:
Post a Comment