Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28

Thread: Problem with simple cron jobs

  1. #16
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Quote Originally Posted by Joe
    what's the problem now?
    PEBKAC problem
    search button for 'crontabs' gives :
    http://wl500g.info/showthread.php?t=1058
    http://wl500g.info/showthread.php?t=1737

  2. #17
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62
    I use the firmware crond and crontab. In de post-mount/post-boot script I enter mkdir -f /var/spool/cron/crontabs. Copy the cron file (e.g. admin) to the /var/spool/cron/crontabs directory and start crond. Works like a charm!
    Code:
    #!/bin/sh
    mkdir -p /var/spool/cron/crontabs
    cp /tmp/harddisk/own/admin /var/spool/cron/crontabs/.
    crond
    You could use the flashfs tool to store the cron tab (the file admin), so no external USB storage needed. .

    Good luck!

  3. #18
    Join Date
    Aug 2005
    Location
    Paris
    Posts
    10

    Cron without cron

    Hi,

    By default cron is not installed, but thru the web interface it's possible to define actions linked to time/day

    For example in Wireless/Advanced it's possible to Enable Radio some days and during time frame

    Someone knows what are the embeded commands used for this ?

    Regards

  4. #19
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    watchdog.
    anyway cron is in the custom firmware already.

  5. #20
    Join Date
    Sep 2005
    Location
    Slovakia
    Posts
    73

    probleme with cron

    i think, i have probleme with cron

    cron -x test get:

    debug flags enabled: test
    cron: can't lock /opt/var/run/cron.pid, otherpid may be 623: Resource temporarily unavailable
    log_it: (CRON 665) DEATH (can't lock /opt/var/run/cron.pid, otherpid may be 623: Resource temporarily unavailable)

    please help!

  6. #21
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299

    problem with Cron

    Hello,

    i need help, i installed the Crontab tutorial by Macsat.

    And now I get this in the Log:

    Code:
    Feb  5 19:06:01 /opt/sbin/cron[95]: (*system*) BAD FILE MODE (/opt/etc/crontab
    What can I do?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  7. #22
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Hello!!

    I have the same problem!!

    Did you solve it?
    How did you solve it?
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  8. #23
    Join Date
    Apr 2005
    Location
    Vienna, Austria
    Posts
    191

    Wrong file permissions?

    mine are -rw-------

    Martin

  9. #24
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Quote Originally Posted by MMCM
    mine are -rw-------

    Martin

    I know "BAD FILE MODE" means File permissions.

    I testet a lot yersterday with permissions, but not -rw------- !

    I will test it, thank you!

    [In redhat linux the permissions must be 0644, confusing ]
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  10. #25
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    Thank you so much!!

    Now it works perfectly!!!
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  11. #26
    Thanks!!!!!!!!! I spend 3 hours due to the same error tonight..finally solved it because of this eminent forum.

    You guys rock.

  12. #27

    cron doesnot work...

    Quote Originally Posted by sodb
    I use the firmware crond and crontab. In de post-mount/post-boot script I enter mkdir -f /var/spool/cron/crontabs. Copy the cron file (e.g. admin) to the /var/spool/cron/crontabs directory and start crond. Works like a charm!
    Code:
    #!/bin/sh
    mkdir -p /var/spool/cron/crontabs
    cp /tmp/harddisk/own/admin /var/spool/cron/crontabs/.
    crond
    You could use the flashfs tool to store the cron tab (the file admin), so no external USB storage needed. .

    Good luck!
    Hello,
    1.) I have directory /var/spool/cron/crontabs and file admin in this directory
    2.) content of file admin: * * * * * echo "test" >> /opt/pavel/testcron
    3.) crond is running (i have it in file post-boot and i see it after command ps)
    result: in the file testcron i see no new lines ("test")
    notes:
    a) if i enter "echo "test" >> /opt/pavel/testcron" in command line, the new line is added to file testcron - so that the command is OK
    b) I tested also other commands - with no effect
    c) I have restarted my asus several times with no effect
    d) when i type "crontab -e", i see this message: You (admin) are not allowed to use this program (crontab) See crontab (1) for more information

    Can anybody help me? Thank you.

  13. #28
    Thing this will hangup router ^)))
    Use it less often.

    bytheway. i think crontab is little buggy (tried to use it later - bash script execution. Executes script partially (that's strange)
    Sorry for my bad English.
    Покупайте Отечественных Слонов!!!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Simple clients signal level measuring
    By pekr in forum WL-500g Custom Development
    Replies: 8
    Last Post: 20-12-2005, 05:15
  2. Add Crontab jobs to images
    By DerFuchs in forum WL-500g Custom Development
    Replies: 6
    Last Post: 11-05-2005, 08:27
  3. Replies: 13
    Last Post: 22-12-2004, 17:27
  4. Simple ICS via PC in XP
    By davidsanton in forum WL-138g [Marvell Chipset]
    Replies: 1
    Last Post: 16-10-2004, 09:10

Tags for this Thread

Posting Permissions

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