#!@awk@ -f

BEGIN {
	if (ARGC != 3){
		print "usage: transport_broken_toupper id ''" > "/dev/stderr"
		exit 77
	}

	id = ARGV [1]
	ARGV [1] = "-"

	ARGV [2] = ""

	# emulate totally broken NODE==4
	if (id == 4){
		system("sleep 1")
		exit 3
	}
}

{
	if ($1 == id && id >= 1){
		# emulate broken TASK==NODE where NODE >= 1
		exit 1
	}

	print toupper($1) # uppering input

	print ""          # end of task marker
	fflush()          # end of task MUST BE FLUSHED!!!
}
