From owner-freebsd-questions Fri Aug 13 2:24:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from vax1.baker.ie (VAX1.baker.IE [194.125.50.91]) by hub.freebsd.org (Postfix) with SMTP id 0A8B914E08 for ; Fri, 13 Aug 1999 02:24:26 -0700 (PDT) (envelope-from cillian@baker.ie) Received: from baker.ie ([194.125.50.55]) by vax1.baker.ie with ESMTP; Fri, 13 Aug 1999 10:27:33 +0100 Message-ID: <37B3E09F.9C1E8752@baker.ie> Date: Fri, 13 Aug 1999 10:08:47 +0100 From: Cillian Sharkey X-Mailer: Mozilla 4.6 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Morten Seeberg Cc: questions@freebsd.org Subject: Re: FreeBSD Commandline Makro Function References: <000f01bee56b$a3dca3c0$a00f010a@SOS> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi. I would like to make some makros, which could do some tasks for me > automaticly via fx Cron. > > What I need the "makro-program" to do, is fx to telnet to my router, send a > username, password, give it some commands, and logout, and the maybe do some > BSD commands to. > > Or open a connection to my modem on the serial port, give it some AT > commands, and then close the connection again. > > Is there such a program out there? usually one would get cron to execute a shell script using /bin/sh as the command interpreter for example any freebsd commands can be put in that file as for doing automatic telnets etc. you might want to look at the "expect" program which as far as I know is designed for send/expect type situations.. Regards, - Cillian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message