php session lock, cron, ssh wrapper, hash key, test loop