create script for non-interactive use of portsnap