Date: Thu, 11 Oct 2001 11:52:32 -0500 From: Mike Meyer <mwm@mired.org> To: Chris Aitken <chris@ideal.net.au> Cc: questions@freebsd.org Subject: Re: rc.d running a perl script/expect Message-ID: <15301.52816.420899.425358@guru.mired.org> In-Reply-To: <123425543@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris Aitken <chris@ideal.net.au> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15301.52816.420899.425358>
