parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallel input from growing file?


From: Hans Schou
Subject: Re: Parallel input from growing file?
Date: Sun, 14 Dec 2014 15:08:07 +0100

Start reading this chapter in the man page:
  EXAMPLE: GNU Parallel as queue system/batch manager

You are not the first who (mis-)use Gnu Parallel as a queue manager.

/hans

2014-12-14 12:01 GMT+01:00 xmoon 2000 <address@hidden>:
Hi,

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]