script that print the log of a running job