@richard: "Anyone here run Kcron on Gutsy?
I am having problems. Kcron takes AGES to start up. When adding a new 
task, browsing for the program hangs the system. Kcron eventually crashes.
Richard."
    @hadronquark: "Richard <email_address> writes:
<quote>
KCron is total and utter junk. Do it yourself in a test editor. You will
learn a lot. Google can help.
La pigrizia non e' altro che l'abitudine di riposarsi prima di essere
stanchi.
		 Jules Renard"
    @richard: "<quote>
I came to that conclusion myself. I have started to use CRON and set-up a 
crontab. I successfully got a task to run. Only trouble is that it 
doesn't seem to have one anything. The CRON task is supposed to have run /
home/richard/desktop/Record1.sh (obviously a shell script). I can run 
this script manually & it works fine. But when CRON ran it nothing 
happened. 
Oct  8 17:01:01 richard-laptop /USR/SBIN/CRON[7871]: (richard) CMD (/home/
richard/desktop/Record1.sh)
Oct  8 17:01:01 richard-laptop /USR/SBIN/CRON[7870]: (richard) MAIL 
(mailed 53 bytes of output but got status 0x0001 )
Do I have to authorise CRON to run Record1.sh?"
    @malcolm_nospamlewis: "On Mon, 08 Oct 2007 11:16:29 -0500
<quote>
Hi
Does your script have the full paths to commands you are running as
when cron runs it has no environment. Else set the path in your cron.
e.g.
root@ernie:~# crontab -l
# m h  dom mon dow   command
PATH=/usr/bin:/bin:/sbin:/usr/sbin
# System Backup to muppet-storage
0 3 * * * /root/bin/01-ibackup >> /dev/null 2>&1
Cheers Malcolm ��� (Linux Counter #276890)
SLED 10.0 SP1 x86_64 Kernel 83.161.120.155-0.8-smp
up 6 days 1:46, 1 user, load average: 0.05, 0.15, 0.15"
    @richard: "<quote>
Thanks, possibly not, I have added PATH=/usr/bin:/bin:/sbin:/usr/sbin to 
no avail. I am attempting to discover what PATH(S) I need to add for 
mplayer. Not having much luck. Any ideas anyone?"
    @hadronquark: "Richard <email_address> writes:
<quote>
Yes. Google up how paths work for a start.
You need to add the path which locates your shell script if you want to
(easily) access from anywhere when on command line. e.g in my
.bash_profile is already this:
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi
Then ...
cd ~
mkdir bin
and then keep all your scripts in this bin directory.
For Cron just give a full filename then path doesnt even come into
it. e.g crontab -l for my login gives:
00-59/10 * * * * /home/hadron/bin/getmails
00-59/10 * * * * /home/hadron/bin/gensigs
Every 10 minutes check my email and generate new signatures.
Good luck.
Para que el sueño, la riqueza y la salud se disfruten de verdad, es
necesario interrumpirlos.
		 Jean Paul Ritcher. (1763-1825). "
    @malcolm_nospamlewis: "On Mon, 08 Oct 2007 11:53:55 -0500
<quote>
Hi
malcolml@ernie:~$ which mplayer
/usr/bin/mplayer
Cheers Malcolm ��� (Linux Counter #276890)
SLED 10.0 SP1 x86_64 Kernel 83.161.120.155-0.8-smp
up 6 days 4:43, 2 users, load average: 0.12, 0.06, 0.01"
    @peattyg471230: "On Mon, 8 Oct 2007 11:28:45 -0500, Malcolm
<quote>
Thanks for this.  With this tip, I now have a working crontab after many
years (yes, years) of trying.  In all of the cron tutorials I've read, I've
not seen a single mention of the fact that cron does not output to STDOUT or
have access to an environment.  Both facts would seem to be essential in
teaching a newbie how to use cron, and it just flabbergasts me that no one
seems to think so.  But, this is not a gripe post.
I still have minor issues with cron:
1) There is no output from zenity.  My reminders run, and I hear the wav
file, but I do not see the message box.
2) The shell script I've written to play my music calls ogg123 four times to
play the songs I want to hear in the order I want to hear them.  It works
fine run from the command line, or called from an Evolution alarm.  But,
only the first song plays when run via cron.  
(My fix was to fireup audacity and merge the songs into one file, which
works fine, but I consider this more a workaround than a solution, and if
there's some way to fix my shell script so it works the way I want via cron,
I'd like to do that ..)"
    @hadronquark: "George Peatty <email_address> writes:
<quote>
Cron can be a pain. However a google of "cron output" tells you all cron
output is mailed to the configured recipient.
Message box? Did you tell cron which display to use?
<url>
post the script. Is the ogg123 return interrupting cron for some reason?
What if you tell ogg123 (assuming you can) to play a LIST of songs
listed in some config file. 
Recuerdo lo que no quisiera, y no puedo olvidar lo que quisiera.
		 Marco Tulio Cicerón. (106-43 A.C.) Escritor, orador y
		político romano. "
    @peattyg471230: "<quote>
It does, indeed.  What it does not explicitly state is what cron will
**not** do, which is rather useful information when deciding how and whether
to use cron
Yeah, I see that, but no mention of $PATH, so I guess this is my problem for
failing to realize I needed to set one.  
Pardon my bluntness, but I find the man page(s) on cron and crontab, and
every tutorial I've ever read on using it, wanting.  "
    @peattyg471230: "On Fri, 12 Oct 2007 16:03:15 +0200, Hadron <email_address>
wrote:
<quote>
I can see that, but that does not explicitly say no output will be sent to
STDOUT.  Forgive me for assuming that directed output to STDOUT was a given,
even with the statement that output was mailed, which I construed to be the
equivalent  of an  ERRORLEVEL return code.  
I'm also pretty obtuse for failing to realize that not only does cron output
not go to STDOUT, nor does the output of any command or script called by
cron.
This sounds bitchier than I mean it to.   I apologize, Hadron.  I  do not
find you to be deserving of the insults you get from others on this board,
am grateful you bothered to williamsmith@example.com.  I guess I'm just venting after
years of frustration dealing with this.  "
    @axyz: "<quote>
I think it is a good idea to put the following into the top of scripts you
may want to run with cron:
[ -n "$PS1" ] ||  . ~/.bashrc
If the script is running noninteractive, this still sets a lot of the
environment variables.  It does not rerun .bashrc if it has already been
run."
    @marcumbill: "<quote>
If you want to run graphical apps from cron, you have to set DISPLAY=:0
Instead of calling ogg123 four times, you could put four filenames on the 
command line or in a playlist file.  I use mpg123 in a cron file on one of my 
computers, but for some reason it tends to get a segmentation fault when 
playing certain files."
    @peattyg471230: "On Tue, 16 Oct 2007 01:29:37 -0400, Bill Marcum <email_address>
wrote:
<quote>
Putting this in my crontab solved my problem,.  My reminders run via cron
and I no longer need Evolution except as a backup .. Thanks for the tip .."
    @peattyg471230: "On Tue, 16 Oct 2007 01:29:37 -0400, Bill Marcum <email_address>
wrote:
<quote>
The playlist did not work.  The cronjob ran on schedule, but only one file
played, and it was not even the first file listed in the playlist.  Back to
the drawing board .."
{'source': 'USENET', 'other_information': '{"reply_count": 14, "forum_name": "alt.os.linux.ubuntu.20140721.mbox"}', 'file': 'data/output/usenet-alt.os.parquet'}