Re: Custom scripts files locations?
On Fri, Mar 09, 2007 at 08:55:12PM -, Andy Kendall wrote: Where should I put any scripts I write or use for the use of all system users please? For example in the FreeBSD Manual in section 9.4.3.2 there's a script for Network Printing; where should this reside please? Do you mean that you want some script available for any user to run at their discretion? Or that you want the system to run before any users get on so something is done for them? In the first case, probably /usr/local/bin is the most common place. In the second, /usr/local/etc/rc.d is the place to put them to have them run at boot to multi-user time. If those script in /usr/local/bin can do any thing serious, like write to people's files then you might want to make a little shell written in c to run them so the users do no run them directly, but only the binary. Then stash the actual scripts somewhere else. jerry Thanks Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Custom scripts files locations?
On Fri, 9 Mar 2007 20:55:12 - Andy Kendall [EMAIL PROTECTED] wrote: Where should I put any scripts I write or use for the use of all system users please? public executables go in /usr/local/bin Bob -- /\ \ /ASCII Ribbon Campaign- Motor Vessel Tamara B X against HTML email vCards- http://www.tamara-b.org / \Tania Our Cat http://www.tamara-b.org/t1.jpg . . http://www.tamara-b.org/t2.jpg signature.asc Description: PGP signature
Re: Custom scripts files locations?
Dependent on the type of script, I would usually use /usr/local/bin See hier(7) in the man pages. Andy Kendall wrote: Where should I put any scripts I write or use for the use of all system users please? For example in the FreeBSD Manual in section 9.4.3.2 there's a script for Network Printing; where should this reside please? Thanks Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Custom scripts files locations?
On Fri, 9 Mar 2007, Andy Kendall wrote: Where should I put any scripts I write or use for the use of all system users please? Depends on what they're for; 'man hier' describes the general rules. For example in the FreeBSD Manual in section 9.4.3.2 there's a script for Network Printing; where should this reside please? The print filter scripts shown there are placed in /usr/local/libexec. They're not really general-purpose scripts, but for the use of lpd. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]