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.--How do I get cron to run the command?
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