Completed and tested routines that automatically reserve linux resources