pre and post running scripts for the server

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

pre and post running scripts for the server

by JPRuehmann » Thu Apr 17, 2014 17:27

Hello
I think it would be great if the local Server could run pre and post execution scripts so p could clean up for example some things before the server starts or when he is shutted down.
they should be executed before loading the first and after shutting down the last mod.

Thanks,
JPR
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Apr 17, 2014 17:33

Cant you do it with a simple shell script?
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Apr 17, 2014 18:21

PilzAdam wrote:Cant you do it with a simple shell script?


I don't get why Linux does not use batch scripts. Batch scripts are the ultimate programming language. They are even better than HTML and CSS as a programming language!
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Thu Apr 17, 2014 18:35

rubenwardy wrote:I don't get why Linux does not use batch scripts. Batch scripts are the ultimate programming language. They are even better than HTML and CSS as a programming language!

Yup because HTML is just a Markup Language and CSS is a styling language.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 17, 2014 18:37

rubenwardy wrote:
PilzAdam wrote:Cant you do it with a simple shell script?


I don't get why Linux does not use batch scripts. Batch scripts are the ultimate programming language. They are even better than HTML and CSS as a programming language!
Eh, because they are made for windows? You can't really compare CSS and HTML to a programming language.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Apr 17, 2014 18:39

Do I need to add "may contain trolls and/or wind ups" to the end of all my posts?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Thu Apr 17, 2014 19:28

rubenwardy wrote:Do I need to add "may contain trolls and/or wind ups" to the end of all my posts?

No, just add to the signature, that does it too.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

Re: pre and post running scripts for the server

by JPRuehmann » Mon Apr 21, 2014 14:34

Hi
I could rename minetestserver and put an script in that would do the things and runs the renamed minetest but this makes updates notably complexer.
I have to do that for minetest now because my system don´t lice the libs that minetestserver wants in the right folder.And I dont want the using, building and installing overly complex.
till then,
JPR
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 8 guests

cron