Running script from rc.d as local user

Gerard Seibert gerard at seibercom.net
Thu Mar 8 15:07:57 UTC 2007


On Thu, 08 Mar 2007 08:52:20 -0600
Derek Ragona <derek at 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.
> 
> 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.

-- 
Gerard

"I think he said 'Blessed are the cheesemakers.'"
"Nonsense, he was obviously referring to all manufacturers of dairy
products."

	The Life of Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070308/4efe8ca3/signature.pgp


More information about the freebsd-questions mailing list