Running process on startup as a user
    Philip Hallstrom 
    freebsd at philip.pjkh.com
       
    Thu Sep 13 11:17:15 PDT 2007
    
    
  
> Using FreeBSD 6.2 x86.
>
> I have a script called:
>
> /home/foo/scripts/MyScript.sh
> The user is 'foo'.  The password is 'bar'.
>
> What I'm trying to do is run the MyScript.sh command on startup (that way if 
> the box reboots, then this users process also re-starts it's self).
>
> thoughts?
Create a crontab entry for the 'foo' user that reads:
@reboot /home/foo/scripts/MyScript.sh
http://www.freebsd.org/cgi/man.cgi?query=crontab&sektion=5
    
    
More information about the freebsd-questions
mailing list