Send CONTROL C via expect

From: Earl Grieda (egriedaIsNotAt_at_WahooXXXyahoo.com)
Date: 05/29/04


Date: Sat, 29 May 2004 16:54:53 GMT

An automated test case will send a ping, via expect, and wait for a
successful response. However, the writer neglected to cover all possible
responses. So, if the ping is unsuccesful it returns the message "Request
timed out.", and then pings forever, or until CONTROL C is sent to kill the
ping. I want to fix the test case to send a "control c" if this occurs.

What is the expect syntax:
 send "<control C goes here>\r"

Thanks.



Relevant Pages

  • Re: Send CONTROL C via expect
    ... >An automated test case will send a ping, via expect, and wait for a ... >successful response. ... if the ping is unsuccesful it returns the message "Request ... I'm having trouble reading this--I suspect it's my incomprehension more ...
    (comp.lang.tcl)
  • Drove the ball well today, finally
    ... just after reshafting my Ping G2 with a stiff shaft as ... driver at all, ended up shooting 89 at Ken McDonald. ... where my tournament handicap is a 12. ... Control is the new mantra. ...
    (rec.sport.golf)
  • Re: XP Firewall? Re: Newbie XP/2K Drive Mapping Issue
    ... Let's start with the ping problems. ... So, to start, do you have an enabled Guest account on each computer? ... Local Security Manager (Control Panel - Administrative Tools - Computer ... Registry entry restrictanonymous. ...
    (microsoft.public.windowsxp.network_web)
  • Re: [linux-usb-devel] [PATCH] : Allow embedded developers USB options normally reserved for
    ... Ping Control ... Ping is required for all USB 2.0 High-speed bulk and control endpoints. ... responsibility for maintaining the PING protocol. ...
    (Linux-Kernel)
  • Homemade laptop lojack: ping website early in boot process
    ... I'd like to have my laptop try to ping a website that I control as ... early in the boot process as possible, preferably as soon as the wifi ...
    (Ubuntu)