Using subprocess to call external shell commands.