Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Oct 1996 08:56:25 -0600
From:      Sean Kelly <kelly@fsl.noaa.gov>
To:        Stephen Hocking <sysseh@devetir.qld.gov.au>
Cc:        hackers@freebsd.org
Subject:   Re: SecureID cards & userland ppp
Message-ID:  <32552599.214F@fsl.noaa.gov>
References:  <199610040739.HAA07974@netfl15a.devetir.qld.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32552599.214F>