https://bugzilla.wikimedia.org/show_bug.cgi?id=48475

       Web browser: ---
            Bug ID: 48475
           Summary: $PATH is different in interactive shells and cron jobs
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: tools
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

PATH for interactive shells is
$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games,
for cron jobs it's set to /usr/bin:/bin.  Fixing this would require patching
cron.  (BTW: Ubuntu ships the original ISC cron?  In 2013?  Really?)

As for example $HOME/bin is added by ~/.profile, a good case could be made that
instead of chasing cars^W^Wtrying to emulate the individual user's interactive
environment in cron, it would be much more efficient to educate users to add
"PATH=..." as the first line to their crontab.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to