mllg / batchtools

Tools for computation on batch systems
https://mllg.github.io/batchtools/
GNU Lesser General Public License v3.0
170 stars 51 forks source link

custom log.file name? #208

Open tdhock opened 5 years ago

tdhock commented 5 years ago

hi there

I see in the templates that there is a log.file parameter, and I would like to specify that (so I can control where the log file exists on the file system, rather than letting batchtools assign a random name). is that possible? I didn't see that in the documentation.

mllg commented 5 years ago

I see in the templates that there is a log.file parameter, and I would like to specify that (so I can control where the log file exists on the file system, rather than letting batchtools assign a random name). is that possible? I didn't see that in the documentation.

This is not possible at the moment. Logs are always stored in [reg$file.dir]/logs/. Can you explain why you need this?

tdhock commented 5 years ago

well for a job that produces the out file foo.out I like to have a matching foo.sh that launches the job and a matching foo.log

mllg commented 5 years ago

It would be possible to use the job.name for the log file name (?setJobName). Would that suffice?

tdhock commented 5 years ago

That's not exactly what I was thinking of, but It would be preferable.