subprocess waiting invocation and string splitting.