Lines Matching refs:command

119 /* Flag indicating whether debug mode is on.  May be set on the command line. */
130 * on the command line.
155 * General data structure for command line options and options configurable
165 * command line, or the HostName specified for the user-supplied name in a
180 /* command to be executed */
181 Buffer command;
183 /* Should we execute a command or invoke a subsystem? */
206 " [user@]hostname [command]\n"
322 /* Parse command-line arguments. */
369 "command with -W");
371 fatal("Multiplexing command already specified");
381 fatal("Invalid multiplex command.");
585 line, "command-line", 0, &dummy) != 0)
636 /* Initialize the command to execute on remote host. */
637 buffer_init(&command);
644 * Save the command to execute on the remote host in a buffer. There
645 * is no limit on the length of the command, except by the maximum
646 * packet size. Also sets the tty flag if there is no command.
649 /* No command specified - execute shell on a tty. */
657 /* A command has been specified. Store it into the buffer. */
660 buffer_append(&command, " ", 1);
661 buffer_append(&command, av[i], strlen(av[i]));
665 /* Cannot fork to background if no command. */
666 if (fork_after_authentication_flag && buffer_len(&command) == 0 &&
668 fatal("Cannot fork into background without a command "
671 /* Allocate a tty by default if no command specified. */
672 if (buffer_len(&command) == 0)
697 * file if the user specifies a config file on the command line.
733 /* preserve host name given on command line for %n expansion */
786 fatal("No ControlPath specified for \"-O\" command");
1276 /* Execute a local command */
1295 * If a command was specified on the command line, execute the
1296 * command now. Otherwise request the server to start a shell.
1298 if (buffer_len(&command) > 0) {
1299 int len = buffer_len(&command);
1302 debug("Sending command: %.*s", len,
1303 (u_char *)buffer_ptr(&command));
1305 packet_put_string(buffer_ptr(&command), buffer_len(&command));
1356 NULL, fileno(stdin), &command, environ);
1451 /* Execute a local command */