Home | History | Annotate | Download | only in x11vnc

Lines Matching defs:cmd

647 	char *cmd;
687 cmd = (char *) malloc(sz);
695 sprintf(cmd, "%s -display %s -tsd '%s' -env TSD_RESTART=1 %s </dev/null 1>%s 2>&1 &",
698 rfbLog("running: %s\n", cmd);
717 system(cmd);
728 system(cmd);
732 system(cmd);
860 char *q, *cmd, *ssh;
898 cmd = (char *) malloc(len);
909 sprintf(cmd, "%s -f -p %d -R '%d:localhost:%d' '%s' 'sleep %d'", ssh, sport, rport, lport, s, sleep);
911 sprintf(cmd, "%s -f -R '%d:localhost:%d' '%s' 'sleep %d'", ssh, rport, lport, s, sleep);
917 rfbLog(" \"%s\"\n", cmd);
924 rfbLog("running: %s\n", cmd);
925 rc = system(cmd);
928 free(cmd);
952 sprintf(cmd, "env COLUMNS=256 %s | egrep '%s.*-R *%d:localhost:%d.*%s.*sleep *%d' | grep -v grep | awk '{print $2}'", ps, ssh, rport, lport, s, sleep);
953 pipe = popen(cmd, "r");
982 free(cmd);
1953 char line[4096], *cmd, *q, *disp = use_dpy ? use_dpy: "";
1969 cmd = (char *)malloc(100 + strlen(program_name) + strlen(disp));
1970 sprintf(cmd, "%s -findauth %s -env _D_XDM=1", program_name, disp);
1971 p = popen(cmd, "r");
1973 rfbLog("-auth guess: could not run cmd '%s'\n", cmd);
1988 if (use_dpy == NULL || strstr(use_dpy, "cmd=FIND") == NULL) {
1990 char *q = strstr(cmd, "_D_XDM=1");
1995 p = popen(cmd, "r");
1997 rfbLog("-auth guess: could not run cmd '%s'\n", cmd);
2184 if (strstr(use_dpy, "cmd=FINDDISPLAY-print")) {
2188 if (strstr(use_dpy, "cmd=FINDCREATEDISPLAY-print")) {
2208 use_dpy = strdup("WAIT:cmd=FINDDISPLAY");
2213 use_dpy = strdup("WAIT:cmd=FINDDISPLAY-run");
2237 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvfb");
2243 sprintf(use_dpy, "WAIT:cmd=FINDCREATEDISPLAY-%s", argv[++i]);
2247 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xdummy");
2251 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xdummy,Xvfb");
2255 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvnc");
2259 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvnc.redirect");
2263 char *q, *t, *t0 = "WAIT:cmd=FINDDISPLAY-vnc_redirect";
2617 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvfb");
2625 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xdummy");
2633 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xdummy,Xvfb");
2641 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvnc");
2649 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvfb.xdmcp");
2657 use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvfb.xdmcp");
4162 use_dpy = strdup("WAIT:cmd=FINDDISPLAY-run");
4562 if (strstr(passwdfile, "cmd:") == passwdfile ||
4571 /* never used under cmd:, used to force auth */
4695 rfbLog("SSL: Restart with, for example, '-ssl SAVE' on the cmd line.\n");
4998 if (ud && strstr(ud, "cmd=") == NULL) {