
import os, sys

sys.stdout.write("this is stdout\n")
sys.stderr.write("this is stderr\n")
if os.environ.has_key("EMIT_TEST"):
    sys.stdout.write("EMIT_TEST: %s\n" % os.environ["EMIT_TEST"])
open("log1.out","wt").write("this is log1\n")

rc = int(sys.argv[1])
sys.exit(rc)
