|Subject:||Re: Parallel input from growing file?|
|Date:||Sun, 14 Dec 2014 15:08:07 +0100|
Currently I read jobs from a file on my c drive that gets written to
by other scripts, and my master script runs each job found in
background with &. I want to use parallel instead of my own script.
I would like parallel to monitor this file and run any jobs in it with
as many cores as are available, or wait until new jobs are appended to
the file. Running 24/7.
What is the syntax for doing this?
My jobFile looks like this:
/myApp prm1 parm2 parm2
/myApp parm1 parm2
/myApp parm1 parm2 parm3 parm4
I could do:
tail -f jobFile | parallel
Is this the best approach?
|[Prev in Thread]||Current Thread||[Next in Thread]|