Re: BlameSentansoken...
Paolo <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <20080815191034.GA24032@localhost> |
On Fri, Aug 15, 2008 at 08:37:29PM +0200, Alejandro Mery wrote: > X=32000000, $?=0 ... > 199999 > 0 > > verified :-) thx - so the culprit is likely in the .crm again. > if [ -w / ] ; then > PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" > for x in /usr/X11/bin /usr/X11/sbin /usr/games /usr/local/games \ > /opt/*/bin /opt/*/sbin /opt/*/games $HOME/bin $HOME/sbin ... > [ -d $x ] && PATH="$x:$PATH" > done argh!... ehm ... at min, I'd _append_ everything else than 'standard' PATH, instead of prepending, unless you _known_ you _want_ the other way, for _some_ _specific_ path. PATH for root is esp. bad IMHO: it's unlikely you want to play games as root(!), also X11 is seldom needed - and so better call the app with fullpath in case. I'd _never_ ever use wildcard search path, esp. for root of course. Debian defaults to your preset PATH: local 1st, then system, then (usually) stuff gets _appended_. But for a server, and esp. for root, I keep system 1st, then local, then any single _explicit_ path needed, but usually it's simply system + local; anything else must be explicitly called with fullpath. -- paolo ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/