usr_bin_path(1);
char *cmd_output(char *cmd) {	FILE *p;	static char output[50000];	char line[1024];	int rc;	rfbLog("running pipe:\n  %s\n", cmd);	p = popen(cmd, "r");	output[0] = '\0';	while (fgets(line, 1024, p) != NULL) {		if (strlen(output) + strlen(line) + 1 < 50000) {			strcat(output, line);		}	}	rc = pclose(p);	return(output);}