print LOG "Files and statuses" bunch of logic to figure out command if (fork()) { update a hash } else { go do the command exit }