Using linux PS to check if a tool is already running #5290
Unanswered
colindaven
asked this question in
Q&A
Replies: 1 comment
-
Don't think there's nothing specific in nextflow in this regard. It just wrap the command in the Bash script and run it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community,
TL;DR - does
ps -aux
actually work with Nextflow or is it restricted/non-functional somehow ?I've not been able to get a bash variable to update successfully to what I am getting on the command line (all running on one local machine for testing.
PASA_COUNT=\$(ps -aux | grep PASA | wc -l)
Maybe there is a more Nextflow-ish way to get running process counts, but my attempt in bash does not work. Artificially setting PASA_COUNT=10 does cause the process to pause (wait 1 minute).
Thanks,
Colin
Beta Was this translation helpful? Give feedback.
All reactions