What's new

[HELP] Build CRON command

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ermax

New Around Here
Please help write CRON command for
/jffs/scripts/init-start

Need every 1 hours get (wget) page like site.com/api_blabla

I now comand start with
#!/bin/sh

But other code i don't understand how write :)

Please help
 
Use the "cru" tool. Syntax:

Code:
Cron Utility
add:  cru a <unique id> <"min hour day month week command">
delete: cru d <unique id>
list:  cru l

So,

Code:
cru a wgetjob " 0 * * * * wget site.com/api_blabla"

This will run every time the clock hits "0" minutes. 1:00, 2:00, etc...
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top