linux - Validation of cronjob and crontab - lynx -dump URL -


i have ssh , 2 cronjobs add:

  1. every friday, every 15 minutes , start on 01:00am (end can @ 23:00am - hour before midnight)

    * /15 1-23 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send 
  2. every day @ 02:00am

    * 2 * * * lynx -dump http://www.mysite.com/dir_name/nl.php?show=get_rss 

when trying save, says error "bad hour". help?

syntax errors:

* /15 1-23 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send ^^^^^ 

should be

*/15 1-23 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send ^^^^ 

note space.

frequency errors:

every friday, every 15 minutes , start on 01:00am (end can @ 23:00am - hour before midnight)

yours execute 1.00 23.45 every 15 min:

*/15 1-23 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send 

it should this:

*/15 1/22 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send 0 23 * * 5 lynx -dump http://www.mysite.com/dir_name/nl.php?show=send 

every day @ 02:00am

yours execute every minute @ hour 2, meaning @ 2.00, 2.01, ..., 2.59:

* 2 * * * lynx -dump http://www.mysite.com/dir_name/nl.php?show=get_rss 

it should this:

0 2 * * * lynx -dump http://www.mysite.com/dir_name/nl.php?show=get_rss 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -