|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T s
Length: 840 (0x348) Types: TextFile Names: »shprompt.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─⟦this⟧ »EUUGD11/euug-87hel/sec8/uutty/shprompt.c«
#include "uutty.h" /* ** We seem to have gotten a shell prompt, but it's kinda hard to be sure. ** This routine is somewhat of a relic in uutty, but has been left here ** because you might want to deal with this case. What we try to do ** basically is to get the shell to logout. */ shprompt(rp) char *rp; { D5("shprompt(\"%s\")",rp); target = "shell"; switch(ss) { case S_INIT: case S_PASSWD: default: E("****Can't handle shell prompt \"%s\" in state %d=%s.",rp,ss,gestate()); Awrite("exit\r"); /* This terminates most shells */ Awrite("logout\r"); /* This terminates other shells */ Awrite("\4\3"); /* This works with still others */ if (m_exit) Awrite(m_exit); /* Other optional exit message */ if (m_init) Awrite(m_init); /* Try to tell the modem to quit */ ss = S_IDLE; D4("State %d=%s",ss,gestate()); } }