legend thank you so much!
Hi, i am trying to get the process work dir (i.e work/ae/7162763812631/ ) path within the process that is using that work dir.
I can't find any information online, the only thing searches give me is to use $PWD however that is the root dir of the actual project. Surely this has to be possible?
proccess get_process_work_dir {
script:
"""
echo $PWD
"""
}
gives me /path/to/nextflow/project
proccess get_process_work_dir {
script:
"""
echo ${task.baseDir}
"""
}
gives me null
when i need:
/path/to/nextflow/project/work/1b/1e6d7dff679367be83f943b5dd2636
1 answer
écho \${PWD}
Don't forget to follow up on your threads. If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work. If an answer was not really helpful or did not work, provide detailed feedback so others know not to use that answer.

Log in to answer this question.