Multitech MT5634HD16 Betriebsanweisung Seite 191

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 190
7 RASExpress Script Language
CommPlete Communications Server 181
WAITFOR waitfor(string pattern [, integer timeout]) : integer;
Waits for a pattern from the remote machine. Timeout is optional. It waits for pattern
to be received from the remote machine or timeout to occur (if specified), whichever is
earlier. The pattern match is not case sensitive. If the connection is not initialized or
pattern is not received, 0 is returned; otherwise 1 is returned.
Example
/* This script illustrates the waitfor command. */
proc main;
string pat;
integer timeout;
pat = "abcdef";
timeout = 10;
fdisplay("wait for %sstarts (timeout = %d seconds)^J^M",
pat, timeout);
if (waitfor(pat, timeout)) then
display("Pattern got, wait ends^J^M");
else
display("Pattern not got, wait failed^J^M");
endif
endproc
Seitenansicht 190
1 2 ... 186 187 188 189 190 191 192 193 194 195 196 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare