From owner-freebsd-questions Thu Oct 11 9:52:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 0670637B405 for ; Thu, 11 Oct 2001 09:52:33 -0700 (PDT) Received: (qmail 37731 invoked by uid 100); 11 Oct 2001 16:52:32 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15301.52816.420899.425358@guru.mired.org> Date: Thu, 11 Oct 2001 11:52:32 -0500 To: Chris Aitken Cc: questions@freebsd.org Subject: Re: rc.d running a perl script/expect In-Reply-To: <123425543@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris Aitken types: > I have come across a weird one that I just cannot explain....... I have a > perl script that gets launched from rc.d that simply runs 24x7 and does the > following [...] > Problem is.... If I run the script as root from console, or as a user > su'ed, then it works perfectly....... > > if I reboot the machine and let the script run from the .sh file in the > rc.d directory, expect seems to ignore any arguments after the script name.... I'm not an expect user, so this may be way off base. However, such problems with other programs are usually caused by environment variables that exist in the interactive environment that aren't set in the environment when periodic runs the script. You might try checking for such things. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message