LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-15-2004, 08:36 AM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
Weekly Cron problem


Hey Guys, I am getting this error on a weekly cron job, I get this in my email every monday from the cron daemon.

/etc/cron.weekly/makewhatis.cron:


zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe


and the file is 88k so the "zcat: stdout: Broken pipe" continues for a while.


here is my makewhatis.cron script....


[root@host cron.weekly]# cat makewhatis.cron
#!/bin/bash

LOCKFILE=/var/lock/makewhatis.lock

# the lockfile is not meant to be perfect, it's just in case the
# two makewhatis cron scripts get run close to each other to keep
# them from stepping on each other's toes. The worst that will
# happen is that they will temporarily corrupt the database...
[ -f $LOCKFILE ] && exit 0
trap "{ rm -f $LOCKFILE; exit 255; }" EXIT
touch $LOCKFILE
makewhatis -w
exit 0

[root@nsyd cron.weekly]# ls -la /var/lock/makewhatis.lock
ls: /var/lock/makewhatis.lock: No such file or directory

[root@host cron.weekly]#
 
Old 11-15-2004, 11:00 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Re: Weekly Cron problem

Quote:
Originally posted by sopiaz57
Hey Guys, I am getting this error on a weekly cron job, I get this in my email every monday from the cron daemon.

/etc/cron.weekly/makewhatis.cron:


zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe

zcat: stdout: Broken pipe


and the file is 88k so the "zcat: stdout: Broken pipe" continues for a while.


here is my makewhatis.cron script....


[root@host cron.weekly]# cat makewhatis.cron
#!/bin/bash

LOCKFILE=/var/lock/makewhatis.lock

# the lockfile is not meant to be perfect, it's just in case the
# two makewhatis cron scripts get run close to each other to keep
# them from stepping on each other's toes. The worst that will
# happen is that they will temporarily corrupt the database...
[ -f $LOCKFILE ] && exit 0
trap "{ rm -f $LOCKFILE; exit 255; }" EXIT
touch $LOCKFILE
makewhatis -w
exit 0

[root@nsyd cron.weekly]# ls -la /var/lock/makewhatis.lock
ls: /var/lock/makewhatis.lock: No such file or directory

[root@host cron.weekly]#
Does this script fail when you run it from a command yourself?
 
Old 11-15-2004, 11:46 AM   #3
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
Hey thanks for the re:



[root@host cron.weekly]# ./makewhatis.cron
zcat: ./cancel.1.gz: No such file or directory
[root@host cron.weekly]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache crash on cron->logrotate (weekly) pezzer55 Linux - Software 7 09-30-2008 07:58 PM
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
how do I rsync & cron to fetch -current weekly? chess Slackware 3 09-11-2005 10:07 AM
cron weekly does not run jordanthompson Linux - Software 21 01-16-2005 09:52 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM


All times are GMT -5. The time now is 04:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration