Hello to all Post4vps friends and users
My game server is crack and after 16 hours it will automatically shut down the Cmd server. Is there a software or command that automatically re-runs cmd automatically when shutting down?
Have you tried cron jobs? Maybe you should try to have like many try before doing cron jobs.
See, it's a high load or what? Nah, maybe that problem close the CMD as you said.
If it's really closing every 16 hours, then you can just do cron jobs for like every 16 hours.
(01-21-2018, 12:42 PM)tiwil Wrote: [ -> ]Have you tried cron jobs? Maybe you should try to have like many try before doing cron jobs.
See, it's a high load or what? Nah, maybe that problem close the CMD as you said.
If it's really closing every 16 hours, then you can just do cron jobs for like every 16 hours.
The inside of the Bat file is not a code that I set to automatically open after closing? Sometimes closes less than 16 hours.
set a cron job.
minute | hour | day-of-month | month | day-of-week | command
30 17 * * 1 /path/to/command
so command will be like:
crontab -e
So to run a command every monday at 5:30 in afternoon:
30 17 * * 1 /path/to/command
or every 16 hours
* */16 * * * /path/to/command
done
(01-22-2018, 03:47 PM)perryoo11 Wrote: [ -> ]set a cron job.
minute | hour | day-of-month | month | day-of-week | command
30 17 * * 1 /path/to/command
so command will be like:
crontab -e
So to run a command every monday at 5:30 in afternoon:
30 17 * * 1 /path/to/command
or every 16 hours
* */16 * * * /path/to/command
done
crontab -e
Should I just add this command to the bat file last? Will my problem be solved?
(01-22-2018, 04:29 PM)hamed Wrote: [ -> ]crontab -e
Should I just add this command to the bat file last? Will my problem be solved?
Bat file?
Open your root and simply write crontab -e
Then go to end of the file, you will have to add the cronjob as
mentioned.
(01-27-2018, 09:28 AM)Lampard Wrote: [ -> ]Bat file?
Open your root and simply write crontab -e
Then go to end of the file, you will have to add the cronjob as mentioned.
Yes bat file
I use Windows OS, not linux
I think this software is for Linux ...