On Feb 5, 2015, at 2:28 AM, Reindl Harald <h.rei...@thelounge.net> wrote: > [root@srv-rhsoft:~]$ cat /etc/crontab > SHELL=/usr/bin/bash > PATH=/usr/bin:/usr/sbin > LANG=en_GB.UTF-8 > MAILTO=root > HOME=/ > PODCAST_THREADS=6
Ah, no, I’ve never touched /etc/crontab. I use sudo crontab -e to edit the user-level crontab for root. I consider /etc/crontab the system level crontab for root and I don’t touch that one. The PATH in /etc/crontab is not the PATH that was returned above, so it doesn’t look like the path in /etc/crontab carries forward to the other user crontabs. Setting the path explicitly a the top of the root user’s crontab worked. On Feb 5, 2015, at 7:03 AM, Benny Pedersen <m...@junc.eu> wrote: > Kevin A. McGrail skrev den 2015-02-05 14:18: >> Rather than learning more about how path and cron works, perhaps just >> symlink things like gpg to /usr/bin might be easier. Gpg is used to >> verify the authenticity of the update. > > or remove bad installers of gpg ? :=) > > http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard That may be, but both SA and gpg are installed by ports, and ports puts most everything under /usr/local which contains within it a /etc /sbin /bin /lib /libexec &c. At least I think that gig comes from gnupg1-1.4.18_2. On Feb 5, 2015, at 10:28 AM, Bob Proulx <b...@proulx.com> wrote: > LuKreme wrote: >> # /bin/sh >> # PATH=/bin:/usr/local/bin echo $PATH && echo $PATH >> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin >> /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin >> >> Hm. That’s odd. >> >> Something else going on there. > > Yes. Something else is going on. :-) Damnit. Yes, of course. Grr. Here is a real test without my being stupid. As stupid. # PATH=/usr/local/bin:/usr/bin:bin whichgpg && whichgpg /usr/local/bin:/usr/bin:bin /usr/local/bin/gpg /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin/:/sw/bin:/usr/X11R6/bin /usr/local/bin/gpg So, yes, the variable setting does NOT get carried through to the second command as you said. -- On 30 Jul 2013, Wietse Venema wrote: >Think 100MHz Pentium, 33k6 analog modem. Even I have stopped using that.