LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2011, 08:34 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
cron problem


cron doesn't run jobs in Debian 64 (testing).
It gives error
Code:
Apr  6 15:31:01 debian64 /USR/SBIN/CRON[5454]: (CRON) error (grandchild #5455 failed with exit status 1)
and doesnt run the script.
 
Old 04-06-2011, 10:36 AM   #2
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
can you post the output of:
crontab -l
 
Old 04-07-2011, 01:13 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
here it is:
Code:
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command


51 * * * * /home/djordje/bin/alarm
where 'alarm' is this simple executable script:

Code:
#!/bin/sh
/usr/bin/X11/xterm -display :0 -bg black -fg white -e "sleep 3; exit 0"
I just need something reminding me to make a break from using computer every hour.
the above script works great when started manually.
 
Old 04-08-2011, 04:02 AM   #4
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
if it works from the command line, but fails from cron, I'm thinking it's an xwindow issue.
xhost command could be the solution there, or at least tell you why it fails.
try launching xhost + and see if your cron now works.

For the specific thing you want, I know there is a package that solves just this. It counts how many minutes in a row you've been using the computer, then if it has been more than what you set previously, it display a popup that suggests to take a break. If you voluntarily step away from the computer a few minutes from now and then, then you won't see the popup.

otherwise, with a cron, if you let the pc turned on for a day, you'll get 24 alerts when you come back ...
also, with your cron, you might get an alarm just a few minutes after connecting ...

Anyway, if someone know about that package name, please post it here, I've forgotten the name
 
Old 04-08-2011, 05:05 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://www.codecoffee.com/tipsforlinux/articles/23.html
However, why not change a popup in a sound?

Kind regards
 
Old 04-20-2011, 05:21 AM   #6
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
gnome-typing-monitor is the tool I use to be reminded of taking a rest every now and then.

it is in the package control-center. use apt-get or yum to get it.

I have it running in the background on my fedora 13 laptop
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 08:57 PM
Cron appears to be messed up (E: cron: subprocess post-installation script returned e bujutsukai Linux - Newbie 1 07-24-2008 03:39 AM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration