a script that make snapshot of a running program