Author Topic: How do I run a script with the server?  (Read 708 times)

owen_a

  • Traveller
  • *
  • Posts: 27
    • View Profile
How do I run a script with the server?
« on: November 28, 2010, 01:43:56 am »
Hello all,

I was wondering if someone could tell me how I could run a script with my server which loads my maps. I already have a textfile saved in the directory of my server called 'loadmaps.txt'.

and inside that file are 4 lines:

loadmap hydlaa_jayose
loadmap jayose
loadmap ojaroad1
loadmap hyoja2

Can anybody help me?

Thanks!

Sen

  • Hydlaa Notable
  • *
  • Posts: 746
    • View Profile
Re: How do I run a script with the server?
« Reply #1 on: November 28, 2010, 08:15:25 am »
It looks like I lost my files from that time, but, if I remember correctly, you can add a parameter "--run=/this/script.name" and place your script in your planeshift folder.

Sen

-edit- corrected stupid wording
.....also a saddle that won't pinch the tail. One day!

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: How do I run a script with the server?
« Reply #2 on: November 28, 2010, 10:56:33 am »
exec pathtothescript
if the file is test in the application folder it would be /this/test
same goes for --run=pathtothescript