Lines Matching defs:script
427 * -1 - no script supplied
428 * 0 - script terminated correctly
434 * char *scrstr - unparsed chat script
448 char **script;
451 syslog(LOG_DEBUG, "getty_chat script='%s'", scrstr);
453 if ((script = read_chat(&scrstr)) != NULL) {
469 while (r == 0 && script[i] != NULL)
470 if ((r = chat_expect(script[i++])) == 0 && script[i] != NULL)
471 r = chat_send(script[i++]);
474 free(script);