From owner-freebsd-hackers Mon Feb 3 15:15:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA26953 for hackers-outgoing; Mon, 3 Feb 1997 15:15:59 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA26911 for ; Mon, 3 Feb 1997 15:15:42 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id KAA02113; Tue, 4 Feb 1997 10:19:29 +1100 (EST) Date: Tue, 4 Feb 1997 10:19:29 +1100 (EST) From: "Daniel O'Callaghan" To: Troy Curtiss cc: freebsd-hackers@freebsd.org Subject: Re: Two-way pipe possible without C/perl? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 3 Feb 1997, Troy Curtiss wrote: > Hi, > I am looking for a very quick and dirty way to have my FreeBSD > box page me when certain systems go down at work. The easiest way > I can think of is to create a 2-way pipe between a chat command and > the cu command. Something like: > > chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" <-> > cu -l /dev/cuaa0 -s 300 stty -f /dev/cuaa0 300 chat " '' ATZ OK ATDT1800PAGER# CONNECT 'PIN12345' Sent ATH" \ < /dev/cuaa0 > /dev/cuaa0 cheers, Danny