On Wed, 8 Sep 2004, John Wheez wrote:
Is there any way to change the permision settings of the log and error
files that condor_submit creates from within condor?
This probably *ISN'T* what you want - you don't say what permissions you
want these files to have - but if you want to make the files condor_submit
creates group read and writeable then you can do this by doing the
following:
chgrp <grpname> /path/to/condor_submit
chmod g+s /path/to/condor_submit
...which will then cause condor_submit to create files whose group is
<grpname> and whose group permissions are (rw). Of course that is no good
if the group of the files needs to be different for each user...
You've probably thought of this, but if it was me then I would write a
wrapper script for condor_submit which did the following:
- parsed the submit file to get the name of the error and log files
- called condor_submit passing it the submit file and any command line
parameters passed by the user
- when condor_submit had finished, changed the permissions on the error
and log files condor_submit produced
Hope this is not completely useless to you...! :)
-- Bruce
--
Bruce Beckles,
e-Science Specialist,
University of Cambridge Computing Service.