The easy way to do this would be using a signal, but that's only 1 bit
of information. Even so, we could use SIGUSR1 to switch to serial mode
and SIGUSR2 to switch to the default parallel mode for example.
Pipes, named pipes, and other "real" IPC seems kind of complicated for
this task.
Probably looking in a file is the easiest thing.
John
On 10/16/12 6:40 AM, Konstantin Tokarev wrote:
Sometimes it's useful to change number of jobs without restarting creduce, e.g.
to run cheaper reduction in parallel with long-running.
creduce could read file with special name from input directory, or use IPC,
e.g. pipe, for user interaction.