ruby app to check exec command