This is a discussion on crontab - abnormal behaviour within the Debian Linux support forums, part of the Debian Linux category; --> Hello, I've got the following entry in the root crontab: 0 */4 * * * cd /home/asService/ && sh ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, I've got the following entry in the root crontab: 0 */4 * * * cd /home/asService/ && sh asService With this line, asService should be executed every four hours, but on my lenny/sid debian server, it happens only at 12, 16 and 20 o'clock, not at 0, 4 and 8... Who has an idea what could lead to this behaviour? Thanks in advance! |
| ||||
| Feverishly pounding upon a keyboard Volker Lücken typed: > Hello, > > I've got the following entry in the root crontab: > 0 */4 * * * cd /home/asService/ && sh asService > > With this line, asService should be executed every four hours, but on my > lenny/sid debian server, it happens only at 12, 16 and 20 o'clock, not > at 0, 4 and 8... Who has an idea what could lead to this behaviour? > *0,4,8 * * * * cd /home/asService/ && sh asService But, I prefer to point to a script and do all the work there. Examples ... crontab reads */15 * * * * /home/myuser/bin/news_sig news_sig reads #!/bin/bash echo sk8r-365 > /home/myuser/documents/signatures/news.sig /usr/games/fortune /home/myuser/bin/matthew >> /home/myuser/documents/signatures/news.sig -- sk8r-365 And when he was gone out into the porch, another maid saw him, and said unto them that were there, This fellow was also with Jesus of Nazareth. -- Matthew 26:71 |