Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to cron a telnet session

110 views
Skip to first unread message

Don

unread,
Sep 24, 1997, 3:00:00 AM9/24/97
to

I have been struggling with setting up a cron that runs a perl script
which executes a telnet. The script runs the way it should via the
command line. When trying to run it from a cron it always fails at
the telnet portion. I have tried this using a shell script and Expect
and everything will work via command line but fails when trying to
cron. I tried declaring the term env but that wasn't enough.
Suggestions are welcomed.

Thanks,
Don
def...@ilstu.edu

Icarus Sparry

unread,
Sep 28, 1997, 3:00:00 AM9/28/97
to

In article <342D9AAB...@tab.com>, Julie Haugh <j...@tab.com> wrote:
>Don wrote:
>There are a couple of tools which will run a program under
>a PTY. Dan Bernstein wrote a "pty" tool which has since
>been superceded (and I don't have the name currently
>available in my wetware working set ...)

pty4.0 was posted to comp.sources.unix, and should be in every system admins
toolbox.

He has since produced ptyget-0.50.tar.gz, available from koobera.math.uic.edu,
which is worth looking at.

Icarus

0 new messages