run pig task as bash.