- /* Now, read in one line at a time from stdin, and run command+args on it */
- in_from_stdin = get_line_from_file(stdin);
- for (;in_from_stdin!=NULL;) {
- len = strlen(in_from_stdin) + len_args_from_cmdline;
- if ( len > len_cmd_to_be_executed ) {
- len_cmd_to_be_executed=len+3;
- cmd_to_be_executed=xrealloc(cmd_to_be_executed, len_cmd_to_be_executed);
- }
- strcat(cmd_to_be_executed, in_from_stdin);
- strcat(cmd_to_be_executed+strlen(cmd_to_be_executed)-2, " ");
- strcat(cmd_to_be_executed, " ");
-
- free(in_from_stdin);
- in_from_stdin = get_line_from_file(stdin);
- }