[95658] 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 (Thomas Ribbrock \(Design/DEG\))
Tue Oct 20 05:05:58 1998

Date: Tue, 20 Oct 1998 10:06:05 +0100
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Mail-Followup-To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
In-Reply-To: <D1DC9C040E12D1118B680060081459491F90BB@CAJUN-EXC>; from Mike A. Lewis, CNE on Mon, Oct 19, 1998 at 11:41:43AM -0700
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Mike A. Lewis, CNE writes:
> 
> I guess I wasn't clear in that my script is a separate file called from
> cron.  Sorry.

According to your original mail, I understood that you were trying to use
expect instead of a shell (hence the line #!/.../expect, right?) via cron.
My suggestion was more like this:

crontab:
12 12 12 12 12 /<PATH_TO_YOUR_SHELLSCRIPT>

shell script:
#!/bin/sh
expect <CORRECT_SYNTAX_TO_CALL_EXPECT_SCRIPT_FILE>

As you stated in your mail, cron doesn't seem to support the #! sysntax
(I've never tested that, so I take your word for it), in which case I'd
expect that an "ordinary" sh shell is running. I could be wrong on this, so
if anybody knows more details I'd be glad to hear them.

Regards,

Thomas

P.S.: Please trim your quotes when responding to the list. Thanks!
-- 
-----------------------------------------------------------------------------
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.


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