.
└── main.nf
#!/usr/bin/env nextflow cheers = Channel.from "Bonjour", "Γεια σου", "Ciao", "Hello", "Hola" process sayHello {   input:   val x from cheers   """   echo $x world!   """ }
nextflow run main.nf
N E X T F L O W ~ version 0.17.3
Launching ./main.nf'
[warm up] executor > local
[5a/097b61] Submitted process > sayHello (1)
[4a/34a4b4] Submitted process > sayHello (4)
[7f/81dfd5] Submitted process > sayHello (5)
[eb/8b1c4a] Submitted process > sayHello (3)
[69/5b3dc6] Submitted process > sayHello (2)
Hola world!
Hello world!
Ciao world!
Bonjour world!
Γεια σου world!
.
└── main.nf
.
├── main.nf
├── .nextflow.history
├── .nextflow.log
└── work
├── 4a
│ └── 34a4b4d888d62c90ae71f7d5c8356f
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 5a
│ └── 097b610d29c05984571e4562041e48
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 69
│ └── 5b3dc6d2ad4e1028d25588d3f046b8
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 7f
│ └── 81dfd57542e3a849f75dbb3af6a952
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
└── eb
└── 8b1c4a81f1e4f05d445082f06753d9
├── .command.begin
├── .command.err
├── .command.out
├── .command.run
├── .command.sh
└── .exitcode
.
├── main.nf
├── .nextflow.history
├── .nextflow.log
└── work
├── 4a
│ └── 34a4b4d888d62c90ae71f7d5c8356f
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 5a
│ └── 097b610d29c05984571e4562041e48
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 69
│ └── 5b3dc6d2ad4e1028d25588d3f046b8
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 7f
│ └── 81dfd57542e3a849f75dbb3af6a952
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
└── eb
└── 8b1c4a81f1e4f05d445082f06753d9
├── .command.begin
├── .command.err
├── .command.out
├── .command.run
├── .command.sh
└── .exitcode
cat work/4a/*/.command.run
#!/bin/bash
# NEXTFLOW TASK: sayHello (4)
set -e
set -u
NXF_DEBUG=${NXF_DEBUG:=0}; [[ $NXF_DEBUG > 2 ]] && set -x
<snip>
COUT=$PWD/.command.po; mkfifo "$COUT"
CERR=$PWD/.command.pe; mkfifo "$CERR"
tee .command.out < "$COUT" &
tee1=$!
tee .command.err < "$CERR" >&2 &
tee2=$!
(
/bin/bash -ue /home/demo/work/4a/34a4b.../.command.sh
) >"$COUT" 2<"$CERR" &
pid=$!
wait $pid || ret=$?
wait $tee1 $tee2
cat work/4a/*/.command.sh
#!/bin/bash -ue
echo 'Hola world!'
nextflow run -process.executor sge main.nf
N E X T F L O W ~ version 0.17.3
Launching ./main.nf'
[warm up] executor > sge
[58/9ae571] Submitted process > sayHello (1)
[67/3517f1] Submitted process > sayHello (4)
[d9/daf56a] Submitted process > sayHello (2)
[8c/8472b0] Submitted process > sayHello (5)
[90/90b7be] Submitted process > sayHello (3)
Hola world!
Hello world!
Γεια σου world!
Ciao world!
Bonjour world!
.
├── main.nf
├── .nextflow.history
├── .nextflow.log
└── work
├── 58
│ └── 9ae5711ebe2548f8bf3598ed351d84
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 67
│ └── 3517f1fbfb9c06579f5971f2a6362a
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 8c
│ └── 8472b0c97003479207f4c8bba77e54
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
├── 90
│ └── 90b7be0324f9bdc8613f290d01e18a
│ ├── .command.begin
│ ├── .command.err
│ ├── .command.out
│ ├── .command.run
│ ├── .command.sh
│ └── .exitcode
└── d9
└── daf56a586b3c6c108b4b7ab1a3dd2e
├── .command.begin
├── .command.err
├── .command.out
├── .command.run
├── .command.sh
└── .exitcode
# After running with SGE executor
cat work/58/*/.command.sh
#!/bin/bash -ue
echo 'Hola world!'
head work/58/*/.command.run
#!/bin/bash
#$ -wd /home/demo/work/58/9ae5711ebe2548f8bf3598ed351d84
#$ -N nf-sayHello_(1)
#$ -o /home/demo/work/58/9ae5711ebe2548f8bf3598ed351d84/.command.log
#$ -j y
#$ -terse
#$ -V
#$ -notify
# NEXTFLOW TASK: sayHello (1)
# On each worker node:
nextflow node -bg
Configuring Apache Ignite cluster daemon
# On the master node:
nextflow run -process.executor ignite main.nf
N E X T F L O W ~ version 0.17.3
Launching ./main.nf'
[warm up] executor > ignite
etc, etc
cheers = Channel.from "Bonjour", "Γεια σου", "Ciao", "Hello", "Hola" process sayHello { input: val x from cheers output: file 'output.txt' into greetings "echo '$x world' > output.txt" } process enthusiasm { input: file 'boring_greeting.txt' from greetings output: file 'enthusiastic.txt' into friendly """ #!/usr/bin/env ruby File.open('enthusiastic.txt', 'w') do |out| out.print File.read('boring_greeting.txt').chomp out.puts '!!!!' end """ }