From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bambach Subject: Re: writing a script to simulate keyboard input Date: Thu, 19 Jul 2007 17:39:35 -0500 Message-ID: <200707191739.36367.eric@cisu.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: karthikv@alum.dartmouth.org Cc: Newbie List On Thursday 19 July 2007 10:48, Karthik Vishwanath wrote: > Hello, > > I have to use an archaic, menu-driven C program that requires keyboard > input to process commands (all of these commands are terminated by a > newline) > > I was wondering if there was any way I could use the program within a > script so that I could have the script "feed" in the sequence of > keystrokes/string-inputs that I must otherwise type in manually? > > As ever, all help/advice is appreciated. Have you seen Perl's expect module? > > Thanks, > > -K > > - > To unsubscribe from this list: send the line "unsubscribe linux-newbie" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.linux-learn.org/faqs -- Thanks, Eric - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs