From owner-freebsd-hackers Mon Feb 3 14:50:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA25769 for hackers-outgoing; Mon, 3 Feb 1997 14:50:33 -0800 (PST) Received: from merix.merix.com (merix.merix.com [198.145.172.40]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA25727 for ; Mon, 3 Feb 1997 14:50:29 -0800 (PST) Received: from sandy.merix.com by merix.merix.com with SMTP (1.38.110.45/16.2) id AA074970666; Mon, 3 Feb 1997 14:57:46 -0800 Received: by sandy.merix.com (4.1/8.0) id AA02205; Mon, 3 Feb 97 14:46:56 PST Date: Mon, 3 Feb 97 14:46:56 PST Subject: Two-way pipe possible without C/perl? To: freebsd-hackers@freebsd.org From: Troy Curtiss Message-Id: Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 in a shell script or etc... Is there a shell (sh, csh, tcsh, bash) mechanism to wire process A's stdin to process B's stdout, and vice- versa, or am I going to have to use perl/expect/C (more time-consuming)? No big deal, but if anybody has a good idea, I'd appreciate it. Cheers, Troy -- /-----------------------------------------------------------\ | Troy Curtiss, HW/SW Engineer | Email: troyc@merix.com | | Merix Corporation, CL-302 | Phone: (970) 203-6643 | | Loveland, CO 80537 | Fax : (970) 203-6610 | \-----------------------------------------------------------/