On Thu, 13 Sep 2007 at 13:15 -0500, [EMAIL PROTECTED] confabulated:


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?

You could put the script in a crontab for that user:

@reboot /bin/sh /home/foo/scripts/MyScript.sh

According to 'man 5 crontab', @reboot runs the script once at startup.

------
  _|_
 (_| |
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to