Jump to content

stargazer restart


Recommended Posts

i use mikrotik api and my router is dead and i need add again users info in new router and i can do this without server restart and i dont need restart ...  

 

I'm using mikrotik app and I want the server to send users data in mikrotik in every 10 minutes, how can I do that?

Link to post
Share on other sites

Use the following command:

crontab -e

It opens an editor with a cron-file for your user. If you need to do cron-jobs under root – execute the command as a root user.

Add the following line to the file:

*/10 * * * * /usr/local/bin/my_cron_command.sh

Save and close the file. It will execute /usr/local/bin/my_cron_command.sh every 10 minutes.
Now you can create /usr/local/bin/my_cron_command.sh, put whatever you want into it (stargazer restart or mikrotik API interaction) and add an executable bit for this file:

chmod +x /usr/local/bin/my_cron_command.sh

Make sure the file is correct by manually executing it.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...