[95611] in RedHat Linux List
Re: Running expect script under cron
daemon@ATHENA.MIT.EDU (Bunicula the Vampire Rabbit)
Mon Oct 19 19:52:41 1998
Date: Mon, 19 Oct 1998 19:46:45 -0400 (EDT)
From: Bunicula the Vampire Rabbit <bunicula@mediaone.net>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
cc: cajun@cajuninc.com
In-Reply-To: <D1DC9C040E12D1118B680060081459491F90B9@CAJUN-EXC>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Mon, 19 Oct 1998, Mike A. Lewis, CNE wrote:
>
> I've written an expect script to periodically check a device on our WAN.
> The script works fine when executed from the command line, but when setup as
> a cron job, it fails.
hello: i'm doing something similar, and it works fine. i have a "standard"
shell script that cron runs called autoftp (it generates a file with my
dhcp assigned ip address and posts it to a web page) once the script is
done genreating the file, it calls the expect script:
#!/bin/bash
# insert commands here, if any
/path/to/your/expect-script
that should work fine... it's been running every hour for 3 days now w/o a
hitch
brian
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.