Page 18 of 20 FirstFirst ... 81617181920 LastLast
Results 171 to 180 of 191

Thread: How-to for crontab

  1. #171
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

    Re: How-to for crontab

    Quote Originally Posted by MarkX View Post
    Has it crossed anyone's mind that putting cron into a GUI would save everyone a lot of work and any idiot might be able to use it in seconds?
    Code:
    sudo apt-get install gnome-schedule
    maybe ?
    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

  2. #172

    Re: How-to for crontab

    This is one of the basic thing in Linux world. You ROCK .

  3. #173
    Join Date
    Nov 2009
    Beans
    2

    Re: How-to for crontab

    hello

    i am a newbie with cron and with ubuntu, and as you assume i have a problem with it

    so here is my cron

    Code:
    * * * * * /bin/crtajdiag 1>/tmp/backup.out 2>&1
    and my backup.out is empty!

    here is what i get in my auth.log

    Code:
    Nov  8 15:42:01 ubuntu CRON[6872]: pam_unix(cron:session): session opened for user root by (uid=0)
    Nov  8 15:42:01 ubuntu CRON[6872]: pam_unix(cron:session): session closed for user root
    Nov  8 15:43:01 ubuntu CRON[6898]: pam_unix(cron:session): session opened for user root by (uid=0)
    Nov  8 15:43:01 ubuntu CRON[6898]: pam_unix(cron:session): session closed for user root
    and syslog

    Code:
    Nov  8 15:42:51 ubuntu wpa_supplicant[1030]: CTRL-EVENT-SCAN-RESULTS 
    Nov  8 15:43:01 ubuntu CRON[6899]: (root) CMD (/bin/crtajdiag 1>/tmp/backup.out 2>&1)
    Nov  8 15:43:51 ubuntu wpa_supplicant[1030]: CTRL-EVENT-SCAN-RESULTS 
    Nov  8 15:44:01 ubuntu CRON[6921]: (root) CMD (/bin/crtajdiag 1>/tmp/backup.out 2>&1)
    adn here is my crtajdiag script witch is working whena i call her up from comand line like this
    Code:
    sudo /bin/crtajdiag
    i get a fine diagram like in the atachment
    but with cron nothing is hapening the time axis is updated buth without the diagram...
    and te script lool like this
    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
    please HELP!!!!!!
    Attached Images Attached Images

  4. #174
    Join Date
    Nov 2009
    Beans
    2

    Re: How-to for crontab

    i did not update a correct rrd database am i stupid or not ...thx myself

  5. #175
    Join Date
    Nov 2009
    Beans
    1

    Smile Re: How-to for crontab

    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 )

  6. #176
    Join Date
    Sep 2009
    Beans
    9
    Distro
    Kubuntu 9.10 Karmic Koala

    Thank you

    cron has been driving me nuts
    oh thank the sweet baby Jesus for this thread!

  7. #177
    Join Date
    Feb 2009
    Beans
    102

    Re: How-to for crontab

    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:

    crontab /home/kevin/kevin.cron.

    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.

  8. #178
    Join Date
    Aug 2009
    Beans
    26

    Re: How-to for crontab

    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.

  9. #179
    Join Date
    Jun 2009
    Beans
    2

    Re: How-to for crontab

    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:
    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
    Running the shell scripts by hand or invoking both the types of flexget commands work, but no longer from in the crontab.
    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

  10. #180
    Join Date
    Jan 2006
    Beans
    558

    Re: How-to for crontab

    could someone look at my post and tell me what i'm doing wrong
    http://ubuntuforums.org/showthread.php?p=9248513

Page 18 of 20 FirstFirst ... 81617181920 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •