write the usual script to set the envirnment, etc