PEBKAC problem ;)Quote:
Originally Posted by Joe
search button for 'crontabs' gives :
http://wl500g.info/showthread.php?t=1058
http://wl500g.info/showthread.php?t=1737
Printable View
PEBKAC problem ;)Quote:
Originally Posted by Joe
search button for 'crontabs' gives :
http://wl500g.info/showthread.php?t=1058
http://wl500g.info/showthread.php?t=1737
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!You could use the flashfs tool to store the cron tab (the file admin), so no external USB storage needed. .Code:#!/bin/sh
mkdir -p /var/spool/cron/crontabs
cp /tmp/harddisk/own/admin /var/spool/cron/crontabs/.
crond
Good luck!
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
watchdog.
anyway cron is in the custom firmware already.
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!
Hello,
i need help, i installed the Crontab tutorial by Macsat.
And now I get this in the Log:
What can I do?Code:Feb 5 19:06:01 /opt/sbin/cron[95]: (*system*) BAD FILE MODE (/opt/etc/crontab
Hello!!
I have the same problem!!
Did you solve it?
How did you solve it?
mine are -rw-------
Martin
Quote:
Originally Posted by MMCM
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 :confused: ]
Thank you so much!!
Now it works perfectly!!!
Thanks!!!!!!!!! I spend 3 hours due to the same error tonight..finally solved it because of this eminent forum.
You guys rock.
Hello,Quote:
Originally Posted by sodb
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.
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)