This is one of the basic thing in Linux world. You ROCK .
i am a newbie with cron and with ubuntu, and as you assume i have a problem with it
so here is my cron
and my backup.out is empty!Code:* * * * * /bin/crtajdiag 1>/tmp/backup.out 2>&1
here is what i get in my auth.log
and syslogCode:Nov 8 15:42:01 ubuntu CRON: pam_unix(cron:session): session opened for user root by (uid=0) Nov 8 15:42:01 ubuntu CRON: pam_unix(cron:session): session closed for user root Nov 8 15:43:01 ubuntu CRON: pam_unix(cron:session): session opened for user root by (uid=0) Nov 8 15:43:01 ubuntu CRON: pam_unix(cron:session): session closed for user root
adn here is my crtajdiag script witch is working whena i call her up from comand line like thisCode:Nov 8 15:42:51 ubuntu wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Nov 8 15:43:01 ubuntu CRON: (root) CMD (/bin/crtajdiag 1>/tmp/backup.out 2>&1) Nov 8 15:43:51 ubuntu wpa_supplicant: CTRL-EVENT-SCAN-RESULTS Nov 8 15:44:01 ubuntu CRON: (root) CMD (/bin/crtajdiag 1>/tmp/backup.out 2>&1)
i get a fine diagram like in the atachmentCode:sudo /bin/crtajdiag
but with cron nothing is hapening the time axis is updated buth without the diagram...
and te script lool like this
please HELP!!!!!!Code:#!/bin/sh rrdtool graph /var/www/potrosnja-10min.png --start end-10m --width 323 --end now --slope-mode --no-legend --vertical-label Watts --lower-limit 0 --alt-autoscale-max DEF:Power=powertemp.rrd:Power:AVERAGE LINE1:Power#0000FF:"Average" > /dev/null
i did not update a correct rrd database am i stupid or not ...thx myself
Ubuntu does have a gui to start programs its here:
system: preferences: startup applications.
That auto starts any gui program when you log in.
(i personally use kde though on my ubuntu system due to the way it looks etc.. i have both on my box though but i don't see gnome much these days )
cron has been driving me nuts
oh thank the sweet baby Jesus for this thread!
I just can't get my crontab to work. I have saved:
*/15 * * * * /home/kevin/grapes.pl
to a file named kevin.cron, and then run:
However, the out put of crontab -l is empty. I tried running crontab -e and this opened up my editor. I then enter the same values in the editor but when I try to save it I get a complaint that a file like /tmp/crontab.1tXyq6/crontab does not exist. I created this file, saved my crontable and still the output of crontab -e is empty. Incidentally, repeating this procedure just keeps generating complaints that a file on some very random seeming path like /tmp/crontab.<random number> does not exist.
It shouldn't be this mysterious. Any advice is appreciated.
Note to all of you who were unable to get your cron job to work:
Be sure to include a newline at the end of the file! Cron will silently ignore jobs on lines that don't have newlines at the end.
Sorry if someone already mentioned this, I'm too lazy to look through all 18 pages of this thread.
My VPS was unexpectedly shut down in a power outage in its DC last week, and since then the crontab hasn't been working. I've been trying to figure it out for a week, but I'm at the point of needing help from others.
This is the crontab in question:
Running the shell scripts by hand or invoking both the types of flexget commands work, but no longer from in the crontab.Code:# m h dom mon dow command */3 * * * * /root/flexget_neil/flexget/flexget.py config.yml -q */3 * * * * /root/flexget_matt/flexget/flexget.py config.yml -q */3 * * * * /root/flexget_ahk/flexget/flexget.py config.yml -q */5 * * * * /root/removelock.sh 50 23 * * * /root/ps3tc_au.sh 55 23 * * * /root/ps3tc_fbnss.sh */30 * * * * /usr/bin/flexget --cron
This is under the root account (yeah yeah yeah...) and yet they still won't play nice. I figured the shutdown last week might have corrupted a file, and a '.lock' file was created or some permissions changed, but I'm not having any luck with it.
Any help would be great.
EDIT: I fixed it. I got some help in another forum, and typically I skipped over the basic step of checking if cron was even running.
Last edited by FatBoyNotSoSlim; April 25th, 2010 at 02:33 AM. Reason: Fixed
could someone look at my post and tell me what i'm doing wrong