arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help about CMD
#1
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?
#2
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.
Thanks to Limitless Hosting and Post4VPS for providing me excellent VPS 13!
#3
(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.
#4
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
#5
(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?
#6
(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 @perryoo11 mentioned.
#7
(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 @perryoo11 mentioned.

Yes bat file

I use Windows OS, not linux
I think this software is for Linux ...
#8
(01-27-2018, 11:20 PM)hamed Wrote: Yes bat file

I use Windows OS, not linux
I think this software is for Linux ...


You can create a scheduled task on Windows server. It is more or less similar to cron job on Linux.

More details here:
https://stackoverflow.com/questions/7195...in-windows




person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting