Re: Running script from rc.d as local user

2007-03-09 Thread Lowell Gilbert
Lowell Gilbert <[EMAIL PROTECTED]> writes: > Gerard Seibert <[EMAIL PROTECTED]> writes: > >> On Thu, 08 Mar 2007 08:52:20 -0600 >> Derek Ragona <[EMAIL PROTECTED]> wrote: > >>> You should add a line: >>> /usr/bin/su [to your username] >> >> OK, I'll try that. > > A way to do this without needing s

Re: Running script from rc.d as local user

2007-03-09 Thread RW
On Thu, 08 Mar 2007 09:24:47 -0500 Gerard Seibert <[EMAIL PROTECTED]> wrote: > I tried starting it from CRON; however, the variables: > > GPG_AGENT_INFO > GPG_TTY > > are not set.. > See crontab(5) ___ freebsd-questions@freebsd.org mailing l

Re: Running script from rc.d as local user

2007-03-09 Thread Lowell Gilbert
Gerard Seibert <[EMAIL PROTECTED]> writes: > On Thu, 08 Mar 2007 08:52:20 -0600 > Derek Ragona <[EMAIL PROTECTED]> wrote: >> You should add a line: >> /usr/bin/su [to your username] > > OK, I'll try that. A way to do this without needing special permissions to touch system files is to use cron;

Re: Running script from rc.d as local user

2007-03-08 Thread Gerard Seibert
On Thu, 08 Mar 2007 08:52:20 -0600 Derek Ragona <[EMAIL PROTECTED]> 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

Re: Running script from rc.d as local user

2007-03-08 Thread Derek Ragona
You need a first line in your script to choose what shell to run it: #!/usr/local/bin/bash You should add a line: /usr/bin/su [to your username] Then try it at bootup as an rc script. -Derek At 08:24 AM 3/8/2007, Gerard Seibert wrote: I am trying to get gpg-agent to start at boot tim