script to copy to remote machine for polling