Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4140

General discussion • Re: cron reports command not found

$
0
0
How do I get cron to run the command?
You need to set the $PATH variable to include the location of command executable. Easiest way to do that is to wrap your command into a shell script and include your normal PATH. E.g.--
The first part is the crontab entry. There rest shows the shell script that cron executes.

Code:

00 06 * * 1-5 /home/pi/bin/runkdfcpi@alrmclk2:~/bin $ cat runkdfc#!/bin/bashPATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/gamesexport DISPLAY=:0.0lxterminal --geometry=70x7 -e mplayer -cache 512 -volume 100 -playlist http://playerservices.streamtheworld.com/pls/KDFCFMAAC.pls

Statistics: Posted by W. H. Heydt — Thu Oct 10, 2024 4:53 am



Viewing all articles
Browse latest Browse all 4140

Trending Articles