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

Re: What's the problem with this cron command



On Sat, 15 Mar 2008 18:00:04 -0400, Patrick Wiseman wrote:

>>  >> PS. I'm sure the PATH is setup properly in my cron, so cron can find ps
>>  >> & grep.
>>  >
>>  > cron runs in a restricted environment and doesn't (to my knowledge)
>>  > source $PATH from anywhere, so you need to explicitly add the paths
>>  > (i.e., /usr/bin/cdrecord) or run a shell script that sets those & then
>>  > runs your command.
>>
>>  You are only partly true. FYI, I can invoke my own command from
>>  un-standard (ie weird) places without specifying path.
> 
> YOU may well be able to do that, but cron almost certainly cannot,
> without explicit path information (as was just suggested).

Forgot to stress that my own command from weird places is launched from
within cron. 

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: