![]() |
Help about CMD - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: Geek World (https://post4vps.com/Forum-Geek-World) +--- Forum: Scripting & Programming (https://post4vps.com/Forum-Scripting-Programming) +--- Thread: Help about CMD (/Thread-Help-about-CMD) |
Help about CMD - hamed - 01-21-2018 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? RE: Help about CMD - tiwil - 01-21-2018 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. RE: Help about CMD - hamed - 01-22-2018 (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. The inside of the Bat file is not a code that I set to automatically open after closing? Sometimes closes less than 16 hours. RE: Help about CMD - perry - 01-22-2018 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 RE: Help about CMD - hamed - 01-22-2018 (01-22-2018, 03:47 PM)perryoo11 Wrote: set a cron job.crontab -e Should I just add this command to the bat file last? Will my problem be solved? RE: Help about CMD - Lampard - 01-27-2018 (01-22-2018, 04:29 PM)hamed Wrote: crontab -e 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. RE: Help about CMD - hamed - 01-27-2018 (01-27-2018, 09:28 AM)Lampard Wrote: Bat file? Yes bat file I use Windows OS, not linux I think this software is for Linux ... RE: Help about CMD - tryp4vps - 01-28-2018 (01-27-2018, 11:20 PM)hamed Wrote: Yes bat file 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/7195503/setting-up-a-cron-job-in-windows |