Date: Thu, 8 Mar 2007 10:07:52 -0500 From: Gerard Seibert <gerard@seibercom.net> To: freebsd-questions@freebsd.org Subject: Re: Running script from rc.d as local user Message-ID: <20070308100752.3884e0a6@localhost> In-Reply-To: <6.0.0.22.2.20070308084942.0247a948@mail.computinginnovations.com> References: <20070308085511.1ECA.GERARD@seibercom.net> <6.0.0.22.2.20070308084942.0247a948@mail.computinginnovations.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_ga+W3=.BU2p0Cs9zKmZtF.. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 08 Mar 2007 08:52:20 -0600 Derek Ragona <derek@computinginnovations.com> wrote: > You need a first line in your script to choose what shell to run it: > #!/usr/local/bin/bash That is all ready in the script. Sorry, I inadvertently failed to disclose that. >=20 > You should add a line: > /usr/bin/su [to your username] OK, I'll try that. > Then try it at bootup as an rc script. --=20 Gerard "I think he said 'Blessed are the cheesemakers.'" "Nonsense, he was obviously referring to all manufacturers of dairy products." The Life of Brian --Sig_ga+W3=.BU2p0Cs9zKmZtF.. Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (FreeBSD) iD8DBQFF8CbIFCqdq4D1ybYRAvp4AKC3RByiTtG8s3sK+TJgtZ4qg144iwCeO4Pn Z1yU7WltJxD38NDTWfYDh7w= =sNmO -----END PGP SIGNATURE----- --Sig_ga+W3=.BU2p0Cs9zKmZtF..--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070308100752.3884e0a6>