job "echo_pid" { datacenters = ["dc1"] type = "batch" constraint { attribute = "${attr.kernel.name}" value = "linux" } group "echo_pid" { task "echo_pid" { driver = "exec" config { command = "bash" args = [ "-c", "local/pid.sh" ] } template { data = <