Shell input for parallel jobs

Let’s say you have a code that want its input from stdin

% cat


fn=`echo /dev/stdin`

cat $fn

and here is some test input:

% cat data
hello world

It is not possible to do

ibrun < data

Instead, make a script that calls

% cat

exec < $1

and use it as

ibrun data

Some programs (for instance Quantum Espresso) can get their input also through a commandline option; see