Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-30-2005, 08:59 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 16

Rep: Reputation: 0
crontab jobs aren't running


i'm having trouble getting cron to work; none of the jobs seem to run. cron is running background after bootup. platform is Debian, which as far as i can tell isn't too different from cron on other distros.

3 entries
mm@al:~$ crontab -l
37 4 * * * date +%y%m%d
3,13,23,33,43,53 * * * * wget -O "/home/mm/data/`date +%r`"\ radar.gif >/dev/null 2>&1
* * * * * xcalc

a debugging attempt:

strace -f -p 1397 -o /tmp/asdfj

al:/home/mm# cat /tmp/asdfj  | grep -i xcalc
2145  execve("/bin/sh", ["/bin/sh", "-c", "xcalc"], [/* 4 vars */]) = 0
2145  stat64("/usr/bin/xcalc", 0xbffffb00) = -1 ENOENT (No such file or directory)
2145  stat64("/bin/xcalc", 0xbffffb00)  = -1 ENOENT (No such file or directory)
2145  write(2, "/bin/sh: xcalc: command not foun"..., 34 <unfinished ...>
2144  <... read resumed> "/bin/sh: xcalc: command not foun"..., 4096) = 34
any pointers?
Old 05-30-2005, 09:16 AM   #2
Registered: Mar 2005
Location: Netherlands
Distribution: Fedora Core 5 x86_64
Posts: 48

Rep: Reputation: 15
PATH Setting


When running under cron the profile and .bash_profile are not run.
Try calling file executables with the full path name (fully qualified name)
Old 05-30-2005, 09:58 AM   #3
LQ Newbie
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
ah, that's good to know.

i updated crontab accordingly; here's the new trace output

al:/home/mm# cat /tmp/asdfj  | grep -i xcalc
2679  execve("/bin/sh", ["/bin/sh", "-c", "/usr/bin/X11/xcalc"], [/* 4 vars */]) = 0
2679  execve("/usr/bin/X11/xcalc", ["/usr/bin/X11/xcalc"], [/* 7 vars */]) = 0

those errors are gone,
but i don't see any xcalc apps run
Old 05-30-2005, 11:24 AM   #4
LQ Newbie
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0

so syslog says xcalc is being run

but shouldn't i see it?

al:/home/mm# cat /var/log/syslog | grep -i xcalc
May 30 12:04:01 al /USR/SBIN/CRON[3145]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:05:01 al /USR/SBIN/CRON[3150]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:06:01 al /USR/SBIN/CRON[3163]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:07:01 al /USR/SBIN/CRON[3174]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:08:01 al /USR/SBIN/CRON[3212]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:09:01 al /USR/SBIN/CRON[3265]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:10:01 al /USR/SBIN/CRON[3300]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:11:01 al /USR/SBIN/CRON[3305]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:12:01 al /USR/SBIN/CRON[3334]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:13:01 al /USR/SBIN/CRON[3343]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:14:01 al /USR/SBIN/CRON[3356]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:15:01 al /USR/SBIN/CRON[3364]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:16:01 al /USR/SBIN/CRON[3369]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:17:01 al /USR/SBIN/CRON[3394]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:18:01 al /USR/SBIN/CRON[3404]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:19:01 al /USR/SBIN/CRON[3419]: (mm) CMD (/usr/bin/X11/xcalc)
May 30 12:20:01 al /USR/SBIN/CRON[3426]: (mm) CMD (/usr/bin/X11/xcalc)
Old 05-30-2005, 12:27 PM   #5
LQ Newbie
Registered: Jan 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Thumbs up

i figgered it out all by myself

DISPLAY doesn't get set either


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
How can I tell if crontab jobs are axecuting ? juanb Linux - General 4 01-27-2011 09:08 AM
keep jobs running server-solution Linux - Software 2 09-15-2005 04:49 AM
Extra cron jobs not in "crontab -e"? inspleak Linux - General 2 07-21-2004 09:47 PM
cron jobs not running scarr3d Linux - Software 7 05-25-2004 04:21 PM
crontab doesnt works with all jobs. pxes351 Linux - Newbie 2 05-10-2004 01:11 AM

All times are GMT -5. The time now is 05:39 AM.

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