[95749] in RedHat Linux List

home help back first fref pref prev next nref lref last post

RE: Running expect script under cron

daemon@ATHENA.MIT.EDU (Mike A. Lewis, CNE)
Wed Oct 21 01:23:25 1998

From: "Mike A. Lewis, CNE" <cajun@cajuninc.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Date: Tue, 20 Oct 1998 22:22:16 -0700
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


Thanks much Thomas (and to all others that replied).  Your theory was right
on target.

The cron task should start an ordinary shell script (i.e. NOT an expect
script).  This the shell script calls the expect shell script.

Errors all gone.  Works fine !

Thanks again.
Mike

-----Original Message-----
From:	Thomas Ribbrock (Design/DEG) [mailto:argathin@iname.com]
Sent:	Monday, October 19, 1998 11:38 AM
To:	'redhat-list@redhat.com'
Subject:	Re: Running expect script under cron

Mike A. Lewis, CNE writes:
> 
[ Problems with running an expect script from cron ]

I'd suggest you put your expect script in a separate file and write an
"ordinary" shell script which calls expect with the expect script file as
parameter (I have never used expect, so I can't help you with the syntax
there). In theory that should work.

Just a try...

Thomas
-- 
----------------------------------------------------------------------------
-
The opinions expressed | Analog Devices BV,        
in this message are my | Raheen Industrial Estate, Limerick, Ireland

own personal views!    | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
      


-- 
  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.


-- 
  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.


home help back first fref pref prev next nref lref last post