[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: start-stop-daemon: command not found error when running cron job



Incoming from Marion Hall:
> I'm trying to stop a wget process after a set amount of time with the
> following command from a crontab.
> 
> start-stop-daemon --stop -n wget
> 
> When this command runs, I get the following error and it doesn't stop wget:
> /bin/sh: start-stop-daemon: command not found

So tell it where start-stop-daemon is?

  (0) keeling /home/keeling_ which start-stop-daemon
  /sbin/start-stop-daemon

cron runs with a minimal environment and likely doesn't have /sbin in
its PATH.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: