← Back to team overview

touch-packages team mailing list archive

Re: [Bug 1534377] [NEW] cron does not read $PATH

 

On 2016-01-15 00:47, Humphrey van Polanen Petel wrote:
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
> 
> Gnome _schedule command preview=/usr/local/bin/bup
  ^^^^^^^^^^
That's not a cron command, that is some independent Gnome frontend. cron
only reads crontabs from /var/spool/cron/crontabs.

You create and edit crontabs by executing "crontab -e". For information
on how to set PATH for cron jobs, please see crontab(5). Anything else
you'll have to report against Gnome.

Regards,
Christian


** Changed in: cron (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1534377

Title:
  cron does not read $PATH

Status in cron package in Ubuntu:
  Invalid

Bug description:
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

  Gnome _schedule command preview=/usr/local/bin/bup && tail -f
  /var/mail/humphrey >~/Desktop/bup-log

  /usr/local/bin contains bin

  log contains
  --
  Content-Type: text/plain; charset=ANSI_X3.4-1968
  X-Cron-Env: <SHELL=/bin/sh>
  X-Cron-Env: <HOME=/home/humphrey>
  X-Cron-Env: <PATH=/usr/bin:/bin>
  X-Cron-Env: <LOGNAME=humphrey>
  Message-Id: <20160110054001.2130AF227EB@David>
  Date: Sun, 10 Jan 2016 16:40:01 +1100 (AEDT)

  /bin/sh: 1: bup: not found
  --

  cron does not read PATH

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: cron 3.0pl1-124ubuntu2
  ProcVersionSignature: Ubuntu 3.16.0-57.77~14.04.1-generic 3.16.7-ckt20
  Uname: Linux 3.16.0-57-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Jan 15 10:39:57 2016
  InstallationDate: Installed on 2015-09-08 (128 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
  SourcePackage: cron
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1534377/+subscriptions


References