From owner-freebsd-hackers Fri Oct 4 07:55:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA23259 for hackers-outgoing; Fri, 4 Oct 1996 07:55:59 -0700 (PDT) Received: from gatekeeper.fsl.noaa.gov (gatekeeper.fsl.noaa.gov [137.75.131.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA23254 for ; Fri, 4 Oct 1996 07:55:57 -0700 (PDT) Received: from cardinal.fsl.noaa.gov (daemon@cardinal.fsl.noaa.gov [137.75.60.101]) by gatekeeper.fsl.noaa.gov (8.7.5/8.7.3) with ESMTP id OAA08254; Fri, 4 Oct 1996 14:55:56 GMT Received: from auk.fsl.noaa.gov by cardinal.fsl.noaa.gov with SMTP (1.40.112.3/16.2) id AA128520956; Fri, 4 Oct 1996 14:55:56 GMT Message-Id: <32552599.214F@fsl.noaa.gov> Date: Fri, 04 Oct 1996 08:56:25 -0600 From: Sean Kelly Organization: NOAA Forecast Systems Laboratory X-Mailer: Mozilla 3.0Gold (X11; I; HP-UX B.10.10 9000/725) Mime-Version: 1.0 To: Stephen Hocking Cc: hackers@freebsd.org Subject: Re: SecureID cards & userland ppp References: <199610040739.HAA07974@netfl15a.devetir.qld.gov.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Stephen Hocking wrote: > As you can imagine, this makes > automating it rather difficult. One can't persuade it to prompt for user input > partway through the login sequence. Any ideas (doing it all manually, via > "term" works fine)? Sounds like a job for "expect". Write an expect script to spawn the term program and do as much as the login as possible. When it gets to the variable part, have expect prompt you. Have it concatenate your PIN number with whatever you entered, send it, and once you're logged in, let it turn control over to you. expect is in the ports collection. -- Sean Kelly NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/